summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Linux-Intel.cmake
diff options
context:
space:
mode:
authorNils Gladitz <nilsgladitz@gmail.com>2014-02-07 10:50:08 (GMT)
committerNils Gladitz <nilsgladitz@gmail.com>2014-02-07 10:50:08 (GMT)
commitb7f58511cf050b8976445694446c695c9d230b8b (patch)
tree24a8878711fbab484d284b0290b295d75211af2f /Modules/Platform/Linux-Intel.cmake
parent5f7d7bdd67d0b00b726161b235d3719ba4f33d05 (diff)
downloadCMake-b7f58511cf050b8976445694446c695c9d230b8b.zip
CMake-b7f58511cf050b8976445694446c695c9d230b8b.tar.gz
CMake-b7f58511cf050b8976445694446c695c9d230b8b.tar.bz2
Visibility: the Intel compiler does not support -fvisibility on windows
Diffstat (limited to 'Modules/Platform/Linux-Intel.cmake')
-rw-r--r--Modules/Platform/Linux-Intel.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Platform/Linux-Intel.cmake b/Modules/Platform/Linux-Intel.cmake
index 2394f10..20fddb4 100644
--- a/Modules/Platform/Linux-Intel.cmake
+++ b/Modules/Platform/Linux-Intel.cmake
@@ -47,4 +47,8 @@ macro(__linux_compiler_intel lang)
"${XIAR} cr <TARGET> <LINK_FLAGS> <OBJECTS> "
"${XIAR} -s <TARGET> ")
endif()
+
+ if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 12.0)
+ set(CMAKE_${lang}_COMPILE_OPTIONS_VISIBILITY "-fvisibility=")
+ endif()
endmacro()