mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-10-08 11:29:02 +00:00
VTKmConfig: Only modify vtkm::cuda when it is an installed target
This commit is contained in:
parent
14333ded1b
commit
1d6d812922
@ -103,9 +103,7 @@ endif()
|
|||||||
if(VTKm_ENABLE_CUDA AND VTKM_FROM_INSTALL_DIR)
|
if(VTKm_ENABLE_CUDA AND VTKM_FROM_INSTALL_DIR)
|
||||||
set_target_properties(vtkm::cuda PROPERTIES cuda_architecture_flags "@VTKm_CUDA_Architecture_Flags@")
|
set_target_properties(vtkm::cuda PROPERTIES cuda_architecture_flags "@VTKm_CUDA_Architecture_Flags@")
|
||||||
set_target_properties(vtkm::cuda PROPERTIES requires_static_builds TRUE)
|
set_target_properties(vtkm::cuda PROPERTIES requires_static_builds TRUE)
|
||||||
endif()
|
|
||||||
|
|
||||||
if(VTKm_ENABLE_CUDA)
|
|
||||||
# If VTK-m is built with 3.18+ and the consumer is < 3.18 we need to drop
|
# If VTK-m is built with 3.18+ and the consumer is < 3.18 we need to drop
|
||||||
# these properties as they break the VTK-m cuda flag logic
|
# these properties as they break the VTK-m cuda flag logic
|
||||||
if(CMAKE_VERSION VERSION_LESS 3.18)
|
if(CMAKE_VERSION VERSION_LESS 3.18)
|
||||||
|
Loading…
Reference in New Issue
Block a user