Commit fa302709 authored by Ben Boeckel's avatar Ben Boeckel

visibility: hide symbols by default

Some third party packages do not work properly with this setting, so
exclude them for now.
parent 98f7e0fa
......@@ -69,6 +69,8 @@ include(vtkCompilerDynamicAnalysisFlags)
option(VTK_BUILD_EXAMPLES "Build VTK examples." OFF)
set(VTK_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
set(CMAKE_CXX_VISIBILITY_PRESET "hidden")
set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
#-----------------------------------------------------------------------------
# Add the Remote Subdirectory
......
# FIXME: jsoncpp only exports symbols properly on Windows.
unset(CMAKE_CXX_VISIBILITY_PRESET)
unset(CMAKE_VISIBILITY_INLINES_HIDDEN)
vtk_module_third_party(
INTERNAL
LICENSE_FILES "vtkjsoncpp/LICENSE"
......
# FIXME: xdmf2 only exports symbols properly on Windows.
unset(CMAKE_CXX_VISIBILITY_PRESET)
unset(CMAKE_VISIBILITY_INLINES_HIDDEN)
vtk_module_third_party_internal(
LICENSE_FILES "vtkxdmf2/Copyright.txt"
VERSION "1.2.11"
......
set(XDMF_NO_REALPATH 1)
# FIXME: xdmf3 only exports symbols properly on Windows.
unset(CMAKE_CXX_VISIBILITY_PRESET)
unset(CMAKE_VISIBILITY_INLINES_HIDDEN)
vtk_module_third_party_internal(
LICENSE_FILES "vtkxdmf3/Copyright.txt"
VERSION "1.2.11"
......
......@@ -8,6 +8,10 @@ if(VTK_REQUIRE_LARGE_FILE_SUPPORT)
-D_FILE_OFFSET_BITS=64)
endif()
# FIXME: MetaIO only exports symbols properly on Windows.
unset(CMAKE_CXX_VISIBILITY_PRESET)
unset(CMAKE_VISIBILITY_INLINES_HIDDEN)
vtk_module_third_party_internal(
LICENSE_FILES "vtkmetaio/License.txt"
VERSION "master"
......
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