Skip to content

Commit

Permalink
CMake: Collective UseInternalLibs option
Browse files Browse the repository at this point in the history
  • Loading branch information
aufau committed Feb 15, 2017
1 parent 32120a9 commit d07e384
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CMakeLists.txt
Expand Up @@ -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)
Expand All @@ -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})
Expand Down

0 comments on commit d07e384

Please sign in to comment.