mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 21:33:55 +00:00
By default do not export all symbols in vtk-m.
This is done to help manage the size of our libraries and executables.
This commit is contained in:
parent
91a09c8ba2
commit
7a356b2cdb
@ -77,6 +77,14 @@ endif ()
|
|||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
# Add supplemental compiler warnings, and GCC visibility support.
|
# Add supplemental compiler warnings, and GCC visibility support.
|
||||||
|
# include export header modules so that we can easily control symbol exporting
|
||||||
|
# VTK-m is setup by default not to export symbols unless explicitly stated.
|
||||||
|
# We prefer to only export symbols of a small set of user facing classes,
|
||||||
|
# rather than exporting all symbols. In practice we will try to not export
|
||||||
|
# symbols for any third party library
|
||||||
|
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
|
||||||
|
set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
|
||||||
|
include(GenerateExportHeader)
|
||||||
include(CMake/VTKmCompilerExtras.cmake)
|
include(CMake/VTKmCompilerExtras.cmake)
|
||||||
|
|
||||||
#-----------------------------------------------------------------------------
|
#-----------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user