Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit b3827cb

Browse files
committed
Turn on PIC for RDC targets.
1 parent 4d43a76 commit b3827cb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmake/ThrustUtilities.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ function(thrust_configure_cuda_target target_name)
3333
if (thrust_cuda_RDC)
3434
set_target_properties(${target_name} PROPERTIES
3535
CUDA_ARCHITECTURES "${THRUST_CUDA_ARCHITECTURES_RDC}"
36+
POSITION_INDEPENDENT_CODE ON
3637
CUDA_SEPARABLE_COMPILATION ON)
3738
else()
3839
set_target_properties(${target_name} PROPERTIES

0 commit comments

Comments
 (0)