rosbuild_add_compile_flags does not work [closed]

asked 2013-03-04 05:04:53 -0500

mikemodanoxxx gravatar image

Hi there,

i have multiple targets in my CMakeLists.txt (C++ and C targets) and would like to set different compiler flags for each target.

add_definitions() works, but it conflicts with other targets in the project:

rosbuild_add_library(Libname ${SRCS}) add_definitions("-std=c++0x")

I replaced the add_definitions() with rosbuild_add_compile_flags(Libname "-std=c++0x") but he seems to ignore the command. Am I missing something?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-11-06 16:03:06.552249