Skip to content

Commit d07e384

Browse files
committed
CMake: Collective UseInternalLibs option
1 parent 32120a9 commit d07e384

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

CMakeLists.txt

+8-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ else()
6363
set(UseInternalSDL2 OFF)
6464
set(UseInternalOpenAL OFF)
6565

66-
if(MINGW)
66+
if(UseInternalLibs)
67+
set(UseInternalPNGDefault ON)
68+
set(UseInternalJPEGDefault ON)
69+
set(UseInternalZLIBDefault ON)
70+
set(UseInternalMiniZipDefault ON)
71+
elseif(MINGW)
6772
set(UseInternalPNGDefault OFF)
6873
set(UseInternalJPEGDefault OFF)
6974
set(UseInternalZLIBDefault OFF)
@@ -80,7 +85,8 @@ else()
8085
set(UseInternalMiniZipDefault OFF)
8186
set(UseInternalSDL2 OFF)
8287
endif()
83-
88+
89+
option(UseInternalLibs "Whether to use included libraries instead of locally installed ones")
8490
option(UseInternalPNG "Whether to use the included libpng instead of a locally installed one" ${UseInternalPNGDefault})
8591
option(UseInternalJPEG "Whether to use the included libjpeg instead of a locally installed one" ${UseInternalJPEGDefault})
8692
option(UseInternalZLIB "Whether to use the included zlib instead of a locally installed one" ${UseInternalZLIBDefault})

0 commit comments

Comments
 (0)