summaryrefslogtreecommitdiffstats
path: root/Modules/GenerateExportHeader.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2011-08-11 08:39:51 (GMT)
committerStephen Kelly <steveire@gmail.com>2011-08-11 08:39:51 (GMT)
commit1f3be450486c9f3eb140a58fb9bf0f5ef4c858ab (patch)
tree69b8aa212fe859d75654bd014cce7b9f52d4ad1e /Modules/GenerateExportHeader.cmake
parent399f415b1558397e51502914ae36b6d055668eeb (diff)
downloadCMake-1f3be450486c9f3eb140a58fb9bf0f5ef4c858ab.zip
CMake-1f3be450486c9f3eb140a58fb9bf0f5ef4c858ab.tar.gz
CMake-1f3be450486c9f3eb140a58fb9bf0f5ef4c858ab.tar.bz2
Make sure the hidden visibility variables never get set on MINGW.
Diffstat (limited to 'Modules/GenerateExportHeader.cmake')
-rw-r--r--Modules/GenerateExportHeader.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake
index 0b93941..322439b 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)
+ if (NOT GCC_TOO_OLD AND NOT MINGW)
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)
@@ -252,7 +252,7 @@ function(add_compiler_export_flags)
_test_compiler_hidden_visibility()
- if(NOT (USE_COMPILER_HIDDEN_VISIBILITY AND COMPILER_HAS_HIDDEN_VISIBILITY) OR MINGW)
+ if(NOT (USE_COMPILER_HIDDEN_VISIBILITY AND COMPILER_HAS_HIDDEN_VISIBILITY))
message(WARNING "Compiler doesn't have hidden visibility")
return()
endif()