summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/VisibilityPreset/CMP0063-NEW.cmake
blob: 9d1ee407405e67c38ceec113b960b37a1442d363 (plain)
1
2
3
4
5
6
7
8
cmake_policy(SET CMP0063 NEW)
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)