Skip to content

Commit

Permalink
turn on position independent code for ouster_ros
Browse files Browse the repository at this point in the history
now this library can be used when building dynamic libraries.
  • Loading branch information
daniel-dsouza authored Jun 11, 2019
1 parent e890d32 commit b10d922
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ouster_ros/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ catkin_package(
)

add_library(ouster_ros STATIC src/os1_ros.cpp)
set_target_properties(${PROJECT_NAME} PROPERTIES POSITION_INDEPENDENT_CODE ON)
target_link_libraries(ouster_ros ${catkin_LIBRARIES})
add_dependencies(ouster_ros ${PROJECT_NAME}_gencpp)

Expand Down

0 comments on commit b10d922

Please sign in to comment.