Simplify. We already know we have hidden visibility at this point.
This commit is contained in:
parent
3b188c833b
commit
c7a937b712
|
@ -248,12 +248,10 @@ function(add_compiler_export_flags)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(USE_COMPILER_HIDDEN_VISIBILITY AND COMPILER_HAS_HIDDEN_VISIBILITY AND NOT _GCC_COMPILED_WITH_BAD_ALLOCATOR)
|
set (EXTRA_FLAGS "-fvisibility=hidden")
|
||||||
set (EXTRA_FLAGS "-fvisibility=hidden")
|
|
||||||
|
|
||||||
if(COMPILER_HAS_HIDDEN_INLINE_VISIBILITY)
|
if(COMPILER_HAS_HIDDEN_INLINE_VISIBILITY)
|
||||||
set (EXTRA_FLAGS "${EXTRA_FLAGS} -fvisibility-inlines-hidden")
|
set (EXTRA_FLAGS "${EXTRA_FLAGS} -fvisibility-inlines-hidden")
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_FLAGS}" PARENT_SCOPE)
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_FLAGS}" PARENT_SCOPE)
|
||||||
endfunction()
|
endfunction()
|
Loading…
Reference in New Issue