Skip to content

Commit 7c4ff00

Browse files
committed
Add a warning
1 parent b8dae2e commit 7c4ff00

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,8 @@ include_directories(
466466
# Run "cmake --help-policy CMP0063" for policy details
467467
if (POLICY CMP0063)
468468
cmake_policy(SET CMP0063 NEW)
469+
else()
470+
message(WARNING "It is not possible to correctly set symbol visibility in object files with your version of CMake. We recommend using CMake 3.3 or newer.")
469471
endif()
470472

471473
function(set_oscap_generic_properties TARGET_OBJECT)

0 commit comments

Comments
 (0)