diff options
author | Brad King <brad.king@kitware.com> | 2015-05-26 13:24:00 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-05-26 13:24:00 (GMT) |
commit | 12b9005d7c015b1f8cece5a9d8cf5f1a9f4a18fa (patch) | |
tree | e51e518ba0502ff060785f2276fd5d2347437cda /Tests/RunCMake/VisibilityPreset/PropertyTypo.cmake | |
parent | 129bf45dee4d6fc4cca8103235013b60464660f2 (diff) | |
parent | 700f1c3b2b379f2af63ba97b93348ff66069a388 (diff) | |
download | CMake-12b9005d7c015b1f8cece5a9d8cf5f1a9f4a18fa.zip CMake-12b9005d7c015b1f8cece5a9d8cf5f1a9f4a18fa.tar.gz CMake-12b9005d7c015b1f8cece5a9d8cf5f1a9f4a18fa.tar.bz2 |
Merge topic 'extend-visibility-properties'
700f1c3b Honor visibility properties for all target types (#15556)
50de5dbb Help: Format visibility property and variable documentation
771f1b00 Tests: Rename Visibility{InlinesHidden =>}
ab55b3b5 Tests: Refactor RunCMake.VisibilityPreset test setup
Diffstat (limited to 'Tests/RunCMake/VisibilityPreset/PropertyTypo.cmake')
-rw-r--r-- | Tests/RunCMake/VisibilityPreset/PropertyTypo.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/VisibilityPreset/PropertyTypo.cmake b/Tests/RunCMake/VisibilityPreset/PropertyTypo.cmake index 03c0ed9..c6e9dd9 100644 --- a/Tests/RunCMake/VisibilityPreset/PropertyTypo.cmake +++ b/Tests/RunCMake/VisibilityPreset/PropertyTypo.cmake @@ -1,3 +1,8 @@ +enable_language(CXX) + +# Ensure CMake warns 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=") add_library(visibility_preset SHARED lib.cpp) set_property(TARGET visibility_preset PROPERTY CXX_VISIBILITY_PRESET hiden) |