mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-08 13:23:51 +00:00
VTKm_LOAD_COMPONENTS_COMMANDS now works with CMake version older than 3.3
This commit is contained in:
parent
b0d3591933
commit
16f3f8ca9f
@ -234,13 +234,19 @@ endif(VTKm_BUILD_EXAMPLES)
|
||||
# Ready files for find_package
|
||||
include(CMakePackageConfigHelpers)
|
||||
|
||||
set(VTKm_LOAD_COMPONENTS_COMMANDS)
|
||||
set(VTKm_LOAD_COMPONENTS_COMMANDS"
|
||||
foreach(comp \${VTKm_FIND_COMPONENTS})")
|
||||
|
||||
foreach(component ${VTKm_AVAILABLE_COMPONENTS})
|
||||
set(VTKm_LOAD_COMPONENTS_COMMANDS "${VTKm_LOAD_COMPONENTS_COMMANDS}
|
||||
if(${component} IN_LIST VTKm_FIND_COMPONENTS)
|
||||
vtkm_configure_component_${component}()
|
||||
endif()")
|
||||
endforeach(component)
|
||||
if(\"${component}\" STREQUAL \${comp})
|
||||
vtkm_configure_component_${component}()
|
||||
continue()
|
||||
endif()")
|
||||
endforeach()
|
||||
|
||||
set(VTKm_LOAD_COMPONENTS_COMMANDS "${VTKm_LOAD_COMPONENTS_COMMANDS}
|
||||
endforeach()" )
|
||||
|
||||
configure_package_config_file(
|
||||
${VTKm_SOURCE_DIR}/CMake/VTKmConfig.cmake.in
|
||||
|
Loading…
Reference in New Issue
Block a user