summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2011-08-11 08:53:58 (GMT)
committerStephen Kelly <steveire@gmail.com>2011-08-11 08:53:58 (GMT)
commit750b67c5a1957f5fa2c7a483050f0ef0959c9924 (patch)
tree5e78aba28f77a2614d201b5cf5cd207e6e6afb51 /Modules
parent1f3be450486c9f3eb140a58fb9bf0f5ef4c858ab (diff)
downloadCMake-750b67c5a1957f5fa2c7a483050f0ef0959c9924.zip
CMake-750b67c5a1957f5fa2c7a483050f0ef0959c9924.tar.gz
CMake-750b67c5a1957f5fa2c7a483050f0ef0959c9924.tar.bz2
Don't use hidden visibility on non-mingw windows either.
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 322439b..92b9433 100644
--- a/Modules/GenerateExportHeader.cmake
+++ b/Modules/GenerateExportHeader.cmake
@@ -132,7 +132,7 @@ macro(_test_compiler_hidden_visibility)
endif()
endif()
- if (NOT GCC_TOO_OLD AND NOT MINGW)
+ if (NOT GCC_TOO_OLD AND NOT WIN32)
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)