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:
Robert Maynard 2015-10-21 10:28:49 -04:00
parent 91a09c8ba2
commit 7a356b2cdb

@ -77,6 +77,14 @@ endif ()
#-----------------------------------------------------------------------------
# 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)
#-----------------------------------------------------------------------------