Only set CMake policy CMP0074 if policy is recognized by CMake
This commit is contained in:
parent
edd5165f1b
commit
b2f0cb79e3
1 changed files with 3 additions and 1 deletions
|
@ -40,7 +40,9 @@ if(WITH_BNETD)
|
|||
endif()
|
||||
find_package(CURL REQUIRED)
|
||||
|
||||
cmake_policy(SET CMP0074 NEW)
|
||||
if (POLICY CMP0074)
|
||||
cmake_policy(SET CMP0074 NEW)
|
||||
endif()
|
||||
if (NOT DEFINED ZLIB_ROOT)
|
||||
set(ZLIB_ROOT ${CMAKE_SOURCE_DIR}/include/zlib/1.2.11 ${CMAKE_SOURCE_DIR}/lib/zlib/1.2.11)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Reference in a new issue