Skip to content

Commit 84afd40

Browse files
author
Chris Wright
committed
Remove source modification from CMake configuration
1 parent 5752b17 commit 84afd40

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,18 +66,6 @@ if(MSVC)
6666
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
6767
endif()
6868

69-
if(NOT CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
70-
# If we're doing an out of source build and the user has a zconf.h
71-
# in their source tree...
72-
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h)
73-
message(STATUS "Renaming")
74-
message(STATUS " ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h")
75-
message(STATUS "to 'zconf.h.included' because this file is included with zlib")
76-
message(STATUS "but CMake generates it automatically in the build directory.")
77-
file(RENAME ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h.included)
78-
endif()
79-
endif()
80-
8169
set(ZLIB_PC ${CMAKE_CURRENT_BINARY_DIR}/zlib.pc)
8270
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/zlib.pc.cmakein
8371
${ZLIB_PC} @ONLY)

0 commit comments

Comments
 (0)