Make sure the hidden visibility variables never get set on MINGW.
This commit is contained in:
parent
399f415b15
commit
1f3be45048
|
@ -132,7 +132,7 @@ macro(_test_compiler_hidden_visibility)
|
||||||
endif()
|
endif()
|
||||||
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=hidden COMPILER_HAS_HIDDEN_VISIBILITY)
|
||||||
check_cxx_compiler_flag(-fvisibility-inlines-hidden COMPILER_HAS_HIDDEN_INLINE_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)
|
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()
|
_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")
|
message(WARNING "Compiler doesn't have hidden visibility")
|
||||||
return()
|
return()
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue