diff options
| author | Vollstrecker <werner@vollstreckernet.de> | 2026-01-03 10:48:38 +0100 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2026-01-12 11:08:02 -0800 |
| commit | 53af7b07e530807daf6ddc55b479c19a128c3870 (patch) | |
| tree | 17e6041b250e5ce208e2645629e88a1eecce4315 | |
| parent | a8631975bc22fdd19b6b6fe6958ecbf0647e0e77 (diff) | |
| download | zlib-53af7b07e530807daf6ddc55b479c19a128c3870.tar.gz zlib-53af7b07e530807daf6ddc55b479c19a128c3870.tar.bz2 zlib-53af7b07e530807daf6ddc55b479c19a128c3870.zip | |
CMake: Make the options available in cmake-gui.
| -rw-r--r-- | contrib/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/CMakeLists.txt b/contrib/CMakeLists.txt index 3e2eb43..fdaf2e9 100644 --- a/contrib/CMakeLists.txt +++ b/contrib/CMakeLists.txt | |||
| @@ -3,15 +3,15 @@ function(zlib_add_contrib_lib name description dir) | |||
| 3 | 3 | ||
| 4 | if(ZLIB_BUILD_${name}) | 4 | if(ZLIB_BUILD_${name}) |
| 5 | if(NOT DEFINED ZLIB_${name}_BUILD_SHARED) | 5 | if(NOT DEFINED ZLIB_${name}_BUILD_SHARED) |
| 6 | set(ZLIB_${name}_BUILD_SHARED ${ZLIB_BUILD_SHARED}) | 6 | set(ZLIB_${name}_BUILD_SHARED ${ZLIB_BUILD_SHARED} CACHE BOOL "") |
| 7 | endif(NOT DEFINED ZLIB_${name}_BUILD_SHARED) | 7 | endif(NOT DEFINED ZLIB_${name}_BUILD_SHARED) |
| 8 | 8 | ||
| 9 | if(NOT DEFINED ZLIB_${name}_BUILD_STATIC) | 9 | if(NOT DEFINED ZLIB_${name}_BUILD_STATIC) |
| 10 | set(ZLIB_${name}_BUILD_STATIC ${ZLIB_BUILD_STATIC}) | 10 | set(ZLIB_${name}_BUILD_STATIC ${ZLIB_BUILD_STATIC} CACHE BOOL "") |
| 11 | endif(NOT DEFINED ZLIB_${name}_BUILD_STATIC) | 11 | endif(NOT DEFINED ZLIB_${name}_BUILD_STATIC) |
| 12 | 12 | ||
| 13 | if(NOT DEFINED ZLIB_${name}_BUILD_TESTING) | 13 | if(NOT DEFINED ZLIB_${name}_BUILD_TESTING) |
| 14 | set(ZLIB_${name}_BUILD_TESTING ${ZLIB_BUILD_TESTING}) | 14 | set(ZLIB_${name}_BUILD_TESTING ${ZLIB_BUILD_TESTING} CACHE BOOL "") |
| 15 | endif(NOT DEFINED ZLIB_${name}_BUILD_TESTING) | 15 | endif(NOT DEFINED ZLIB_${name}_BUILD_TESTING) |
| 16 | 16 | ||
| 17 | add_subdirectory(${dir}/) | 17 | add_subdirectory(${dir}/) |
