From 79d96ebdb7f75ea5ac73adca12d3f125981a1f5c Mon Sep 17 00:00:00 2001 From: Vollstrecker Date: Wed, 11 Dec 2024 09:07:56 +0100 Subject: CMake: Clear variable with unset. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) 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) -- cgit v1.2.3-55-g6feb