apollo-platform
apollo-platform copied to clipboard
pb_msg_example CMakeLists.txt
In apollo-platform/ros/pb_msgs_example/CMakeLists.txt, there is a line:
include_directories(${CATKIN_INCLUDE_DIRS})
I had to change it into
include_directories(${catkin_INCLUDE_DIRS})
to make build work. Otherwise, the path to dependant header files is not added to the compile command line (-I flag) for this package.
I've met this problem : fatal error: ros/ros.h: No such file or directory when i use catkin_make to compile pb_msg_example. It works for me, thank you!
In apollo-platform/ros/pb_msgs_example/CMakeLists.txt, there is a line:
include_directories(${CATKIN_INCLUDE_DIRS})
I had to change it into
include_directories(${catkin_INCLUDE_DIRS})
to make build work. Otherwise, the path to dependant header files is not added to the compile command line (-I flag) for this package.