summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2011-08-15 23:19:37 (GMT)
committerStephen Kelly <steveire@gmail.com>2011-08-15 23:19:37 (GMT)
commitf4264960551d088d3a0f1eea3049d2d8ecfd285b (patch)
treee78c8c7851e243e6ceed6444bb52c7aa24453e2e /Modules
parentf84c7db5928dcb4a46c3f8d51d910e4ad4367113 (diff)
downloadCMake-f4264960551d088d3a0f1eea3049d2d8ecfd285b.zip
CMake-f4264960551d088d3a0f1eea3049d2d8ecfd285b.tar.gz
CMake-f4264960551d088d3a0f1eea3049d2d8ecfd285b.tar.bz2
Exclude cygwin from the hidden visibility feature.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/GenerateExportHeader.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake
index f3a1836..f73748c 100644
--- a/Modules/GenerateExportHeader.cmake
+++ b/Modules/GenerateExportHeader.cmake
@@ -149,7 +149,7 @@ macro(_test_compiler_hidden_visibility)
# 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)
+ if (NOT GCC_TOO_OLD AND NOT WIN32 AND NOT CYGWIN 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)