aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAllen Winter <winter@kde.org>2006-05-18 22:48:00 +0000
committerAllen Winter <winter@kde.org>2006-05-18 22:48:00 +0000
commit51ab25a2a39fba465cff7dea130571dc5bbd1b2e (patch)
treed05fccd471c2879b35408dd966081c6ae979bf24
parent3ba9a9978013acb1e14de68399ec66a5893762ea (diff)
downloadextra-cmake-modules-51ab25a2a39fba465cff7dea130571dc5bbd1b2e.tar.gz
extra-cmake-modules-51ab25a2a39fba465cff7dea130571dc5bbd1b2e.tar.bz2
visibility for the Intel C/C++ compiler.
it works (as in compiles and links), but I don't know for sure if it *really* works.. if you know what I mean :> svn path=/trunk/KDE/kdelibs/; revision=542311
-rw-r--r--modules/FindKDE4Internal.cmake9
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake
index e2490b0e..86125b13 100644
--- a/modules/FindKDE4Internal.cmake
+++ b/modules/FindKDE4Internal.cmake
@@ -611,14 +611,11 @@ if (CMAKE_C_COMPILER MATCHES "icc")
set(CMAKE_C_FLAGS_DEBUG "-O2 -g -Ob0 -noalign")
set(CMAKE_C_FLAGS_DEBUGFULL "-g -Ob0 -noalign")
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ansi -no-gcc -Wpointer-arith -fno-common")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ansi -no-gcc -Wpointer-arith -fno-exceptions -fno-common")
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -ansi -Wpointer-arith -fno-common")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -ansi -Wpointer-arith -fno-exceptions -fno-common")
# visibility support
-# check_cxx_compiler_flag(-fvisibility=hidden __KDE_HAVE_ICC_VISIBILITY)
-# if (__KDE_HAVE_ICC_VISIBILITY)
-# set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
-# endif (__KDE_HAVE_ICC_VISIBILITY)
+ set (__KDE_HAVE_ICC_VISIBILITY)
endif (CMAKE_C_COMPILER MATCHES "icc")