Build statically but position independent code
- This is necessary to link against shared libraries on Linux
This commit is contained in:
committed by
Martin Idel
parent
8fb9c51bf8
commit
c6c6e833fe
@@ -33,6 +33,8 @@ target_link_libraries(laser_geometry
|
|||||||
${tf2_LIBRARIES}
|
${tf2_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
set_property(TARGET laser_geometry PROPERTY POSITION_INDEPENDENT_CODE ON)
|
||||||
|
|
||||||
ament_export_include_directories(include)
|
ament_export_include_directories(include)
|
||||||
ament_export_interfaces(laser_geometry)
|
ament_export_interfaces(laser_geometry)
|
||||||
ament_export_libraries(laser_geometry)
|
ament_export_libraries(laser_geometry)
|
||||||
|
|||||||
Reference in New Issue
Block a user