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

2nd CMake fix

parent c5fd1326
No related branches found
No related tags found
No related merge requests found
...@@ -17,11 +17,12 @@ function(append_if condition value) ...@@ -17,11 +17,12 @@ function(append_if condition value)
endif() endif()
endfunction() endfunction()
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR #if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR
CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") # CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR
check_cxx_compiler_flag("-fvisibility-inlines-hidden" SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG) # CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
append_if(SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG "-fvisibility=hidden -fvisibility-inlines-hidden" CMAKE_CXX_FLAGS) # check_cxx_compiler_flag("-fvisibility-inlines-hidden" SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG)
endif() # append_if(SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG "-fvisibility=hidden -fvisibility-inlines-hidden" CMAKE_CXX_FLAGS)
#endif()
if(UNIX) if(UNIX)
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x") #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment