diff options
Diffstat (limited to '')
-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) |