CMake: Avoid double inclusion of CPack warning.
This commit is contained in:
parent
15a3751836
commit
f42008f5b4
2 changed files with 6 additions and 0 deletions
|
@ -47,6 +47,8 @@ include(CheckTypeSize)
|
|||
include(CPack)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
set(CPACK_INCLUDED TRUE)
|
||||
|
||||
if(NOT ZLIB_CONF_WRITTEN)
|
||||
set(Z_PREFIX ${ZLIB_PREFIX})
|
||||
set(CONF_OUT_FILE ${zlib_BINARY_DIR}/zconf.h.cmakein)
|
||||
|
|
|
@ -39,6 +39,10 @@ include(CMakePackageConfigHelpers)
|
|||
include(CheckTypeSize)
|
||||
include(GNUInstallDirs)
|
||||
|
||||
if(NOT CPACK_INCLUDED)
|
||||
include(CPack)
|
||||
endif(NOT CPACK_INCLUDED)
|
||||
|
||||
if(MINIZIP_ENABLE_BZIP2)
|
||||
find_package(BZip2)
|
||||
endif(MINIZIP_ENABLE_BZIP2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue