Add option to CMakeLists.txt to disable renaming of zconf.h.

pull/920/merge
Tomas Berger 5 years ago committed by Mark Adler
parent d4eaa1d939
commit df3b265064
  1. 3
      CMakeLists.txt

@ -65,7 +65,8 @@ if(MSVC)
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
endif()
if(NOT CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
option(RENAME_ZCONF "Rename the zconf when building out of source" ON)
if(NOT CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR AND RENAME_ZCONF)
# If we're doing an out of source build and the user has a zconf.h
# in their source tree...
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h)

Loading…
Cancel
Save