1
0
mirror of https://github.com/madler/zlib synced 2025-03-28 21:13:15 +00:00

CMake: Clear variable with unset.

This commit is contained in:
Vollstrecker 2024-12-11 09:07:56 +01:00 committed by Mark Adler
parent b5c01971c2
commit 79d96ebdb7

View File

@ -55,12 +55,13 @@ if(NOT ZLIB_CONF_WRITTEN)
set(ZLIB_CONF_WRITTEN TRUE CACHE BOOL "zconf.h.cmakein was created")
mark_as_advanced(ZLIB_CONF_WRITTEN)
endif(NOT ZLIB_CONF_WRITTEN)
#
# Check to see if we have large file support
#
set(CMAKE_REQUIRED_DEFINITIONS -D_LARGEFILE64_SOURCE=1)
check_type_size(off64_t OFF64_T)
set(CMAKE_REQUIRED_DEFINITIONS) # clear variable
unset(CMAKE_REQUIRED_DEFINITIONS) # clear variable
#
# Check for fseeko
@ -87,6 +88,7 @@ check_c_source_compiles(
"
HAVE___ATTR__VIS_HIDDEN)
unset(CMAKE_COMPILE_FLAGS)
set(ZLIB_PC ${zlib_BINARY_DIR}/zlib.pc)
configure_file(${zlib_SOURCE_DIR}/zlib.pc.cmakein
${ZLIB_PC} @ONLY)