Skip to content
Snippets Groups Projects
Commit c5fd1326 authored by Andrews Sobral's avatar Andrews Sobral
Browse files

Fix CMake file

parent 74a7c29a
No related branches found
No related tags found
No related merge requests found
...@@ -17,8 +17,7 @@ function(append_if condition value) ...@@ -17,8 +17,7 @@ function(append_if condition value)
endif() endif()
endfunction() endfunction()
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR
CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR
CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
check_cxx_compiler_flag("-fvisibility-inlines-hidden" SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG) check_cxx_compiler_flag("-fvisibility-inlines-hidden" SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG)
append_if(SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG "-fvisibility=hidden -fvisibility-inlines-hidden" CMAKE_CXX_FLAGS) append_if(SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG "-fvisibility=hidden -fvisibility-inlines-hidden" CMAKE_CXX_FLAGS)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment