diff --git a/CMake/VTKmDeviceAdapters.cmake b/CMake/VTKmDeviceAdapters.cmake index b15c742a6..e7d6e0412 100644 --- a/CMake/VTKmDeviceAdapters.cmake +++ b/CMake/VTKmDeviceAdapters.cmake @@ -282,6 +282,7 @@ function(kokkos_fix_compile_options) string(REGEX MATCH "[$]<[$]:-Xcompiler;.*>" cxx_compile_options "${compile_options}") string(REGEX MATCH "-arch=sm_[0-9][0-9]" cuda_arch "${compile_options}") string(REPLACE "-Xcompiler;" "" cxx_compile_options "${cxx_compile_options}") + list(TRANSFORM compile_options REPLACE "--relocatable-device-code=true" "") #We use CMake for this flag list(TRANSFORM compile_options REPLACE "COMPILE_LANGUAGE:CXX" "COMPILE_LANGUAGE:CUDA") list(APPEND compile_options "${cxx_compile_options}") set_property(TARGET ${lib_target} PROPERTY INTERFACE_COMPILE_OPTIONS ${compile_options}) @@ -292,7 +293,7 @@ function(kokkos_fix_compile_options) endforeach() endwhile() - set_property(TARGET vtkm::kokkos PROPERTY INTERFACE_LINK_OPTIONS "$") + set_property(TARGET vtkm::kokkos PROPERTY INTERFACE_LINK_OPTIONS "$") if (OPENMP IN_LIST Kokkos_DEVICES) set_property(TARGET vtkm::kokkos PROPERTY INTERFACE_LINK_OPTIONS "$") endif()