diff options
author | Stephen Kelly <steveire@gmail.com> | 2011-08-11 18:18:19 +0200 |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2011-08-12 00:18:43 +0200 |
commit | 78a6e1c1224bbeb92f44dd681cc914030bbf8c82 (patch) | |
tree | e9fe673d2f0b218b5337805b6ada96053c838bbf /Modules/GenerateExportHeader.cmake | |
parent | e1f7ee3de71fc0e7a34bf05ec2cf4ec586ff9e32 (diff) | |
download | cmake-78a6e1c1224bbeb92f44dd681cc914030bbf8c82.tar.gz |
Exclude the XL compiler from the hidden-visibility test.
Diffstat (limited to 'Modules/GenerateExportHeader.cmake')
-rw-r--r-- | Modules/GenerateExportHeader.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake index 578d71f321..05f36f3865 100644 --- a/Modules/GenerateExportHeader.cmake +++ b/Modules/GenerateExportHeader.cmake @@ -146,7 +146,10 @@ macro(_test_compiler_hidden_visibility) endif() endif() - if (NOT GCC_TOO_OLD AND NOT WIN32) + # Exclude XL here because it misinterprets -fvisibility=hidden even though + # the check_cxx_compiler_flag passes + # http://www.cdash.org/CDash/testDetails.php?test=109109951&build=1419259 + if (NOT GCC_TOO_OLD AND NOT WIN32 AND NOT "${CMAKE_CXX_COMPILER_ID}" MATCHES XL) check_cxx_compiler_flag(-fvisibility=hidden COMPILER_HAS_HIDDEN_VISIBILITY) check_cxx_compiler_flag(-fvisibility-inlines-hidden COMPILER_HAS_HIDDEN_INLINE_VISIBILITY) option(USE_COMPILER_HIDDEN_VISIBILITY "Use HIDDEN visibility support if available." ON) |