summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/Clang-CXX.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-05-23 13:32:17 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-06-02 10:00:51 (GMT)
commitcd1fa537a03377974a4d0a27e592785f931a41e5 (patch)
tree4b8ca66e58a08ed81c1200700317b8ae6737a7d2 /Modules/Compiler/Clang-CXX.cmake
parent0e9f4bc00c6b26f254e74063e4026ac33b786513 (diff)
downloadCMake-cd1fa537a03377974a4d0a27e592785f931a41e5.zip
CMake-cd1fa537a03377974a4d0a27e592785f931a41e5.tar.gz
CMake-cd1fa537a03377974a4d0a27e592785f931a41e5.tar.bz2
Add a COMPILE_OPTION for a VISIBILITY_INLINES_HIDDEN target property.
This corresponds to the g++ and clang++ option -fvisibility-inlines-hidden on linux. On Windows with MinGW, this corresponds to -fno-keep-inline-dllexport. That option is not supported by clang currently.
Diffstat (limited to 'Modules/Compiler/Clang-CXX.cmake')
-rw-r--r--Modules/Compiler/Clang-CXX.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Compiler/Clang-CXX.cmake b/Modules/Compiler/Clang-CXX.cmake
index 486e2af..972d889 100644
--- a/Modules/Compiler/Clang-CXX.cmake
+++ b/Modules/Compiler/Clang-CXX.cmake
@@ -1,2 +1,4 @@
include(Compiler/Clang)
__compiler_clang(CXX)
+
+set(CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY_INLINES_HIDDEN "-fvisibility-inlines-hidden")