diff options
author | Vollstrecker <werner@vollstreckernet.de> | 2024-12-11 09:07:56 +0100 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2025-01-31 19:59:10 -0800 |
commit | 79d96ebdb7f75ea5ac73adca12d3f125981a1f5c (patch) | |
tree | 0aefba6b7916b4e1deece80fac33cee65b207739 | |
parent | b5c01971c210544286323a5bf7eefb3095ed4e01 (diff) | |
download | zlib-79d96ebdb7f75ea5ac73adca12d3f125981a1f5c.tar.gz zlib-79d96ebdb7f75ea5ac73adca12d3f125981a1f5c.tar.bz2 zlib-79d96ebdb7f75ea5ac73adca12d3f125981a1f5c.zip |
CMake: Clear variable with unset.
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ef5f46a..4fd462a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -55,12 +55,13 @@ if(NOT ZLIB_CONF_WRITTEN) | |||
55 | set(ZLIB_CONF_WRITTEN TRUE CACHE BOOL "zconf.h.cmakein was created") | 55 | set(ZLIB_CONF_WRITTEN TRUE CACHE BOOL "zconf.h.cmakein was created") |
56 | mark_as_advanced(ZLIB_CONF_WRITTEN) | 56 | mark_as_advanced(ZLIB_CONF_WRITTEN) |
57 | endif(NOT ZLIB_CONF_WRITTEN) | 57 | endif(NOT ZLIB_CONF_WRITTEN) |
58 | |||
58 | # | 59 | # |
59 | # Check to see if we have large file support | 60 | # Check to see if we have large file support |
60 | # | 61 | # |
61 | set(CMAKE_REQUIRED_DEFINITIONS -D_LARGEFILE64_SOURCE=1) | 62 | set(CMAKE_REQUIRED_DEFINITIONS -D_LARGEFILE64_SOURCE=1) |
62 | check_type_size(off64_t OFF64_T) | 63 | check_type_size(off64_t OFF64_T) |
63 | set(CMAKE_REQUIRED_DEFINITIONS) # clear variable | 64 | unset(CMAKE_REQUIRED_DEFINITIONS) # clear variable |
64 | 65 | ||
65 | # | 66 | # |
66 | # Check for fseeko | 67 | # Check for fseeko |
@@ -87,6 +88,7 @@ check_c_source_compiles( | |||
87 | " | 88 | " |
88 | HAVE___ATTR__VIS_HIDDEN) | 89 | HAVE___ATTR__VIS_HIDDEN) |
89 | 90 | ||
91 | unset(CMAKE_COMPILE_FLAGS) | ||
90 | set(ZLIB_PC ${zlib_BINARY_DIR}/zlib.pc) | 92 | set(ZLIB_PC ${zlib_BINARY_DIR}/zlib.pc) |
91 | configure_file(${zlib_SOURCE_DIR}/zlib.pc.cmakein | 93 | configure_file(${zlib_SOURCE_DIR}/zlib.pc.cmakein |
92 | ${ZLIB_PC} @ONLY) | 94 | ${ZLIB_PC} @ONLY) |