diff options
author | Alexander Neundorf <neundorf@kde.org> | 2006-04-26 20:34:40 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2006-04-26 20:34:40 +0000 |
commit | 6a3973d0089eb03cf6b56d8cded6441d55a7db1c (patch) | |
tree | 34aa9fc0a75b62ca51223a6daafcbeae22329cd8 /modules/FindKDE4Internal.cmake | |
parent | 3862d6ce313b4525242c859645ad13b1047054af (diff) | |
download | extra-cmake-modules-6a3973d0089eb03cf6b56d8cded6441d55a7db1c.tar.gz extra-cmake-modules-6a3973d0089eb03cf6b56d8cded6441d55a7db1c.tar.bz2 |
-move the test for a compiler flag into an own generic cmake module: CheckCXXCompilerFlag.cmake
-add a comment about removing CheckTypeSize.cmake once we require cmake 2.4.1
Alex
svn path=/trunk/KDE/kdelibs/; revision=534314
Diffstat (limited to 'modules/FindKDE4Internal.cmake')
-rw-r--r-- | modules/FindKDE4Internal.cmake | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index 6a3d31fb..d35dc1d1 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -185,7 +185,7 @@ set(QT_MIN_VERSION "4.1.1") find_package(Qt4 REQUIRED) include (MacroLibrary) -include (CheckCXXSourceCompiles) +include (CheckCXXCompilerFlag) #add some KDE specific stuff @@ -558,13 +558,10 @@ if (CMAKE_COMPILER_IS_GNUCXX) endif (CMAKE_SYSTEM_NAME MATCHES Linux) # visibility support - set (SAFE_CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS}") - set (CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -fvisibility=hidden") - CHECK_CXX_SOURCE_COMPILES("int main() { return 0; }" __KDE_HAVE_GCC_VISIBILITY) + check_cxx_compiler_flag(-fvisibility=hidden __KDE_HAVE_GCC_VISIBILITY) if (__KDE_HAVE_GCC_VISIBILITY) - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden") + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden") endif (__KDE_HAVE_GCC_VISIBILITY) - set (CMAKE_REQUIRED_FLAGS "${SAFE_CMAKE_REQUIRED_FLAGS}") endif (CMAKE_COMPILER_IS_GNUCXX) |