From d07e3848a3f6c3e48e060b665c6c60b7beb7e16e Mon Sep 17 00:00:00 2001 From: fau Date: Wed, 15 Feb 2017 19:41:20 +0100 Subject: [PATCH] CMake: Collective UseInternalLibs option --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c56cbad7..6f202950 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,7 +63,12 @@ else() set(UseInternalSDL2 OFF) set(UseInternalOpenAL OFF) - if(MINGW) + if(UseInternalLibs) + set(UseInternalPNGDefault ON) + set(UseInternalJPEGDefault ON) + set(UseInternalZLIBDefault ON) + set(UseInternalMiniZipDefault ON) + elseif(MINGW) set(UseInternalPNGDefault OFF) set(UseInternalJPEGDefault OFF) set(UseInternalZLIBDefault OFF) @@ -80,7 +85,8 @@ else() set(UseInternalMiniZipDefault OFF) set(UseInternalSDL2 OFF) endif() - + + option(UseInternalLibs "Whether to use included libraries instead of locally installed ones") option(UseInternalPNG "Whether to use the included libpng instead of a locally installed one" ${UseInternalPNGDefault}) option(UseInternalJPEG "Whether to use the included libjpeg instead of a locally installed one" ${UseInternalJPEGDefault}) option(UseInternalZLIB "Whether to use the included zlib instead of a locally installed one" ${UseInternalZLIBDefault})