ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The semicolon is coming from you line of changing the CMAKE_CXX_FLAGS
. Whenever you set a CMake variable with multiple arguments you are not defining a string variable but a list - and list items are separated with a semicolon in CMake.
Therefore you should set the variable with a single value:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
2 | No.2 Revision |
The semicolon is coming from you your line of changing the CMAKE_CXX_FLAGS
. Whenever you set a CMake variable with multiple arguments you are not defining a string variable but a list - and list items are separated with a semicolon in CMake.
Therefore you should set the variable with a single value:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")