summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/VisibilityPreset/CMP0063-OLD.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/VisibilityPreset/CMP0063-OLD.cmake')
-rw-r--r--Tests/RunCMake/VisibilityPreset/CMP0063-OLD.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/VisibilityPreset/CMP0063-OLD.cmake b/Tests/RunCMake/VisibilityPreset/CMP0063-OLD.cmake
new file mode 100644
index 0000000..8378209
--- /dev/null
+++ b/Tests/RunCMake/VisibilityPreset/CMP0063-OLD.cmake
@@ -0,0 +1,8 @@
+cmake_policy(SET CMP0063 OLD)
+enable_language(CXX)
+
+# Ensure CMake would warn even if toolchain does not really have these flags.
+set(CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY_INLINES_HIDDEN "-fvisibility-inlines-hidden")
+set(CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY "-fvisibility=")
+
+include(CMP0063-Common.cmake)