Skip to content
Snippets Groups Projects
Commit 84a429d7 authored by Olivier Stasse's avatar Olivier Stasse
Browse files

[cmake] Make sure that we are compiling with REAL_ROBOT on.

parent d58a2494
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,7 @@ include(cmake/python.cmake) ...@@ -26,7 +26,7 @@ include(cmake/python.cmake)
#project(talos_roscontrol_sot) #project(talos_roscontrol_sot)
OPTION(REAL_ROBOT "Compiling this package for the real robot" FALSE) OPTION(REAL_ROBOT "Compiling this package for the real robot" TRUE)
find_package(PkgConfig REQUIRED) find_package(PkgConfig REQUIRED)
...@@ -43,6 +43,9 @@ if(${REAL_ROBOT}) ...@@ -43,6 +43,9 @@ if(${REAL_ROBOT})
controller_interface controller_interface
pal_hardware_interfaces pal_hardware_interfaces
) )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DREAL_ROBOT")
else(${REAL_ROBOT}) else(${REAL_ROBOT})
set(additional_catkin_required_components set(additional_catkin_required_components
talos_controller_interface talos_controller_interface
......
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