diff options
author | Tomas Berger <tomashimberg.berger@technipfmc.com> | 2020-08-24 15:46:51 +0200 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2024-01-23 08:39:24 -0800 |
commit | df3b26506453866c608bc0155293716a17a351b9 (patch) | |
tree | 43a152d0a8c6beab08d6af8ecb62ca1d2202b5e9 | |
parent | d4eaa1d939f59822ba3ab0b56a547a8fcde33f7e (diff) | |
download | zlib-df3b26506453866c608bc0155293716a17a351b9.tar.gz zlib-df3b26506453866c608bc0155293716a17a351b9.tar.bz2 zlib-df3b26506453866c608bc0155293716a17a351b9.zip |
Add option to CMakeLists.txt to disable renaming of zconf.h.
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ca10ab..fbe4f1f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -65,7 +65,8 @@ if(MSVC) | |||
65 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}) | 65 | include_directories(${CMAKE_CURRENT_SOURCE_DIR}) |
66 | endif() | 66 | endif() |
67 | 67 | ||
68 | if(NOT CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR) | 68 | option(RENAME_ZCONF "Rename the zconf when building out of source" ON) |
69 | if(NOT CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR AND RENAME_ZCONF) | ||
69 | # If we're doing an out of source build and the user has a zconf.h | 70 | # If we're doing an out of source build and the user has a zconf.h |
70 | # in their source tree... | 71 | # in their source tree... |
71 | if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h) | 72 | if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h) |