From 2b2eec69b52ae600441f6ffb2f545b7833caa842 Mon Sep 17 00:00:00 2001 From: Vollstrecker Date: Sun, 1 Dec 2024 10:13:00 +0100 Subject: CMake: Remove unneeded renaming for in-tree builds and the option for it. --- CMakeLists.txt | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4f2babc..814df18 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -65,19 +65,6 @@ if(MSVC) include_directories(${zlib_SOURCE_DIR}) endif() -option(RENAME_ZCONF "Rename the zconf when building out of source" ON) -if(NOT zlib_SOURCE_DIR STREQUAL zlib_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 ${zlib_SOURCE_DIR}/zconf.h) - message(STATUS "Renaming") - message(STATUS " ${zlib_SOURCE_DIR}/zconf.h") - message(STATUS "to 'zconf.h.included' because this file is included with zlib") - message(STATUS "but CMake generates it automatically in the build directory.") - file(RENAME ${zlib_SOURCE_DIR}/zconf.h ${zlib_SOURCE_DIR}/zconf.h.included) - endif() -endif() - 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