Merge topic 'VTKmConfig_only_modify_non_aliased_targets'

1d6d81292 VTKmConfig: Only modify vtkm::cuda when it is an installed target

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2231
This commit is contained in:
Robert Maynard 2020-08-21 17:31:11 +00:00 committed by Kitware Robot
commit 111ff949d9

@ -103,9 +103,7 @@ endif()
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 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
# these properties as they break the VTK-m cuda flag logic
if(CMAKE_VERSION VERSION_LESS 3.18)