提交 49b5d79a 编写于 作者: P Peter Kuemmel 提交者: Mark Adler

Rename zconf.h in CMakeLists.txt to move it out of the way.

上级 dbe0bed7
...@@ -67,11 +67,11 @@ if(NOT CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR) ...@@ -67,11 +67,11 @@ if(NOT CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR)
# If we're doing an out of source build and the user has a zconf.h # If we're doing an out of source build and the user has a zconf.h
# in their source tree... # in their source tree...
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h) if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h)
message(FATAL_ERROR message(STATUS "Renaming")
"You must remove ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h " message(STATUS " ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h")
"from the source tree. This file is included with zlib " message(STATUS "to 'zconf.h.included' because this file is included with zlib")
"but CMake generates this file for you automatically " message(STATUS "but CMake generates it automatically in the build directory.")
"in the build directory.") file(RENAME ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h ${CMAKE_CURRENT_SOURCE_DIR}/zconf.h.included)
endif() endif()
endif() endif()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册