Skip to content
Snippets Groups Projects
Commit 3b188c83 authored by Stephen Kelly's avatar Stephen Kelly
Browse files

Test for features, not specific compilers.

parent 4718233a
No related branches found
No related tags found
No related merge requests found
......@@ -228,7 +228,9 @@ endfunction()
function(add_compiler_export_flags)
if(NOT CMAKE_COMPILER_IS_GNUCXX OR MINGW)
_test_compiler_hidden_visibility()
if(NOT (USE_COMPILER_HIDDEN_VISIBILITY AND COMPILER_HAS_HIDDEN_VISIBILITY) OR MINGW)
return()
endif()
......@@ -246,8 +248,6 @@ function(add_compiler_export_flags)
endif()
endif()
_test_compiler_hidden_visibility()
if(USE_COMPILER_HIDDEN_VISIBILITY AND COMPILER_HAS_HIDDEN_VISIBILITY AND NOT _GCC_COMPILED_WITH_BAD_ALLOCATOR)
set (EXTRA_FLAGS "-fvisibility=hidden")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment