ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 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")

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")