VTK-m now excludes large files from CMake Unity builds

CMake 3.16 includes support for unity builds which merge multiple
translation units together automatically for faster builds.
A couple of translation units in VTK-m already require lots of
system memory, and merging them actually decreases compile performance
This commit is contained in:
Robert Maynard 2019-11-26 11:22:03 -05:00
parent 291f3527b1
commit a1af800cc0
2 changed files with 3 additions and 0 deletions

@ -154,6 +154,8 @@ set(sources_device
VectorMagnitude.cxx
)
set_source_files_properties(Contour.cxx ExtractStructured.cxx ClipWithField.cxx ClipWithImplicitFunction.cxx PROPERTIES SKIP_UNITY_BUILD_INCLUSION ON)
vtkm_library(
NAME vtkm_filter
TEMPLATE_SOURCES ${header_template_sources}

@ -147,6 +147,7 @@ vtkm_library(
)
target_link_libraries(vtkm_worklet PUBLIC vtkm_cont)
set_source_files_properties(${sources_device} PROPERTIES SKIP_UNITY_BUILD_INCLUSION ON)
#-----------------------------------------------------------------------------
add_subdirectory(testing)