[CMake] CFLAGS and CPPFLAGS
christophe laferriere
christophe.laferriere at gmail.com
Fri Apr 17 05:31:52 EDT 2009
Hi all,
I'm currently using add_definition("-Wall -std=c99 -pedantic") to have
CFLAGS sets, but I'm now adding some tests that uses the project
library I'm working on, and those tests are in C++. So I'm getting an
error about the -std=c99 flag which does not work for C++.
So my question is what is the best way to have both CFLAGS and
CPPFLAGS (apparently not using add_definition()).
Thanks in advance!
More information about the CMake
mailing list