Skip to content
Snippets Groups Projects
Commit 3f2f9ae3 authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Fix CMAKE_CXX_FLAGS

parent 5ac1737a
No related branches found
No related tags found
1 merge request!16Devel
...@@ -4,7 +4,7 @@ project(wolf_ros_node) ...@@ -4,7 +4,7 @@ project(wolf_ros_node)
## Compile as C++14 ## Compile as C++14
add_compile_options(-std=c++14) add_compile_options(-std=c++14)
# -fPIC and -rdynamic ensure unique singleton instance across shared libraries (for factories) see: https://stackoverflow.com/a/8626922 # -fPIC and -rdynamic ensure unique singleton instance across shared libraries (for factories) see: https://stackoverflow.com/a/8626922
SET(CMAKE_CXX_FLAGS "-fPIC -rdynamic") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -rdynamic")
find_package(catkin REQUIRED COMPONENTS find_package(catkin REQUIRED COMPONENTS
roslib roslib
...@@ -53,7 +53,7 @@ add_library(publisher_${PROJECT_NAME} ...@@ -53,7 +53,7 @@ add_library(publisher_${PROJECT_NAME}
src/publisher_state_block.cpp src/publisher_state_block.cpp
src/publisher_tf.cpp src/publisher_tf.cpp
src/publisher_trajectory.cpp) src/publisher_trajectory.cpp)
## Specify libraries to link a library or executable target against ## Specify libraries to link a library or executable target against
target_link_libraries(subscriber_${PROJECT_NAME} target_link_libraries(subscriber_${PROJECT_NAME}
${catkin_LIBRARIES} ${catkin_LIBRARIES}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment