rosbuild_add_compile_flags does not work
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:
rosbuildaddlibrary(Libname ${SRCS}) add_definitions("-std=c++0x")
I replaced the adddefinitions() with rosbuildaddcompileflags(Libname "-std=c++0x") but he seems to ignore the command. Am I missing something?
Asked by mikemodanoxxx on 2013-03-04 06:04:53 UTC
Comments