Commit 80f5f6e0 authored by Marcus D. Hanwell's avatar Marcus D. Hanwell

BUG: Bug #9552 - use visibility even for static.

After talking with Brad King it is clear that the visibility support is
also useful for static linking.
parent 2ddd0ef0
......@@ -38,7 +38,7 @@ if(CMAKE_COMPILER_IS_GNUCXX)
mark_as_advanced(VTK_USE_GCC_VISIBILITY)
if(${_gcc_version} VERSION_GREATER 4.2.0 AND HAVE_GCC_VISIBILITY
AND VTK_USE_GCC_VISIBILITY AND BUILD_SHARED_LIBS)
AND VTK_USE_GCC_VISIBILITY)
# Should only be set if GCC is newer than 4.2.0
set(VTK_ABI_CXX_FLAGS "-fvisibility=hidden -fvisibility-inlines-hidden")
else()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment