Skip to content

Commit 81f4e20

Browse files
authored
Separate compilation feature (#327)
* add new cuda property * fix empty space
1 parent 12a5c39 commit 81f4e20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ else ()
143143
endif ()
144144

145145
set_property(TARGET RobotecGPULidar PROPERTY POSITION_INDEPENDENT_CODE ON)
146+
set_property(TARGET RobotecGPULidar PROPERTY CUDA_SEPARABLE_COMPILATION ON)
146147

147148
target_compile_definitions(RobotecGPULidar PUBLIC RGL_BUILD_PCL_EXTENSION=$<BOOL:${RGL_BUILD_PCL_EXTENSION}>)
148149
target_compile_definitions(RobotecGPULidar PUBLIC RGL_BUILD_ROS2_EXTENSION=$<BOOL:${RGL_BUILD_ROS2_EXTENSION}>)

0 commit comments

Comments
 (0)