Skip to content

Commit b8dae2e

Browse files
committed
Check if CMake policy CMP0063 is defined
This policy was introduced in CMake 3.3. Fixes #1188.
1 parent 2e25017 commit b8dae2e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,9 @@ include_directories(
464464

465465
# Honor visibility properties for all target types
466466
# Run "cmake --help-policy CMP0063" for policy details
467-
cmake_policy(SET CMP0063 NEW)
467+
if (POLICY CMP0063)
468+
cmake_policy(SET CMP0063 NEW)
469+
endif()
468470

469471
function(set_oscap_generic_properties TARGET_OBJECT)
470472
set_target_properties(${TARGET_OBJECT} PROPERTIES

0 commit comments

Comments
 (0)