diff options
author | Stephen Kelly <steveire@gmail.com> | 2011-08-10 08:28:15 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2011-08-10 08:28:15 (GMT) |
commit | c7a937b71258d063bdcd0249b927bcd987ab3273 (patch) | |
tree | 84eb71061e67165596bfc4f11b8defff662189d0 /Modules | |
parent | 3b188c833b1d349dd610d5f5c929804d34b1967f (diff) | |
download | CMake-c7a937b71258d063bdcd0249b927bcd987ab3273.zip CMake-c7a937b71258d063bdcd0249b927bcd987ab3273.tar.gz CMake-c7a937b71258d063bdcd0249b927bcd987ab3273.tar.bz2 |
Simplify. We already know we have hidden visibility at this point.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/GenerateExportHeader.cmake | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake index 73ed5e2..6ee7bd7 100644 --- a/Modules/GenerateExportHeader.cmake +++ b/Modules/GenerateExportHeader.cmake @@ -248,12 +248,10 @@ function(add_compiler_export_flags) 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) - set (EXTRA_FLAGS "${EXTRA_FLAGS} -fvisibility-inlines-hidden") - endif() + if(COMPILER_HAS_HIDDEN_INLINE_VISIBILITY) + set (EXTRA_FLAGS "${EXTRA_FLAGS} -fvisibility-inlines-hidden") endif() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_FLAGS}" PARENT_SCOPE) endfunction()
\ No newline at end of file |