aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@kde.org>2007-11-06 14:27:51 +0000
committerLuboš Luňák <l.lunak@kde.org>2007-11-06 14:27:51 +0000
commit303fbe95e515a6887dec0a2f98485ec22e64b28b (patch)
tree4a417751f5e33a4e79d39b640cbdf6664e0f0502 /modules
parent2e402f21a8e3202ae118ca6db63b8102f1b44872 (diff)
downloadextra-cmake-modules-303fbe95e515a6887dec0a2f98485ec22e64b28b.tar.gz
extra-cmake-modules-303fbe95e515a6887dec0a2f98485ec22e64b28b.tar.bz2
Make __KDE_HAVE_GCC_VISIBILITY cached.
svn path=/trunk/KDE/kdelibs/; revision=733507
Diffstat (limited to 'modules')
-rw-r--r--modules/FindKDE4Internal.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake
index 3a4f2e72..ab0f4fb5 100644
--- a/modules/FindKDE4Internal.cmake
+++ b/modules/FindKDE4Internal.cmake
@@ -813,6 +813,7 @@ if (CMAKE_COMPILER_IS_GNUCXX)
# visibility support
check_cxx_compiler_flag(-fvisibility=hidden __KDE_HAVE_GCC_VISIBILITY)
+ set( __KDE_HAVE_GCC_VISIBILITY ${__KDE_HAVE_GCC_VISIBILITY} CACHE BOOL "GCC support for hidden visibility")
# get the gcc version
exec_program(${CMAKE_C_COMPILER} ARGS --version OUTPUT_VARIABLE _gcc_version_info)