Commit 87d5eb3c authored by Robert Maynard's avatar Robert Maynard

Compile VTK-m tests with the correct fpic settings.

When CUDA is enabled the VTK::AcceleratorsVTKm are built with fpic
enabled, and therefore so do the tests.
parent 2e6df5dc
......@@ -37,3 +37,9 @@ endif()
vtk_test_cxx_executable(vtkAcceleratorsVTKmCxxTests tests
if (TARGET vtkm::cuda)
# When cuda is enabled VTK::AcceleratorsVTKm is built statically but with fpic
# enabled so the tests are also built with fpic enabled
set_target_properties(vtkAcceleratorsVTKmCxxTests PROPERTIES POSITION_INDEPENDENT_CODE ON)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment