diff options
author | Brad King <brad.king@kitware.com> | 2014-02-10 16:24:50 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-02-10 16:24:50 (GMT) |
commit | c9a489aec6b64ab6bbb7836611b8047db2301cc8 (patch) | |
tree | c2458c43fc530095b313501b77a3d80a4bc6aa71 /Modules/Platform/Darwin-icc.cmake | |
parent | 3c23873e04c03a9ac877a9a67325b26907e28309 (diff) | |
parent | b7f58511cf050b8976445694446c695c9d230b8b (diff) | |
download | CMake-c9a489aec6b64ab6bbb7836611b8047db2301cc8.zip CMake-c9a489aec6b64ab6bbb7836611b8047db2301cc8.tar.gz CMake-c9a489aec6b64ab6bbb7836611b8047db2301cc8.tar.bz2 |
Merge topic 'intel-visibility'
b7f58511 Visibility: the Intel compiler does not support -fvisibility on windows
Diffstat (limited to 'Modules/Platform/Darwin-icc.cmake')
-rw-r--r-- | Modules/Platform/Darwin-icc.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/Platform/Darwin-icc.cmake b/Modules/Platform/Darwin-icc.cmake index 0fab9a1..c7e31c0 100644 --- a/Modules/Platform/Darwin-icc.cmake +++ b/Modules/Platform/Darwin-icc.cmake @@ -75,6 +75,12 @@ if(XCODE) set(CMAKE_INCLUDE_SYSTEM_FLAG_CXX) endif() +if(NOT CMAKE_C_COMPILER_VERSION VERSION_LESS 12.0) + set(CMAKE_C_COMPILE_OPTIONS_VISIBILITY "-fvisibility=") + set(CMAKE_CXX_COMPILE_OPTIONS_VISIBILITY "-fvisibility=") +endif() + + set(CMAKE_MacOSX_Content_COMPILE_OBJECT "\"${CMAKE_COMMAND}\" -E copy_if_different <SOURCE> <OBJECT>") set(CMAKE_C_CREATE_SHARED_LIBRARY |