[CMake] How to specify target specific CPPFLAGS or CFLAGS?

Clark J. Wang dearvoid at gmail.com
Tue May 15 06:03:56 EDT 2007


I have a C source file `foo.c' and I want to produce 2 executables like
this:

$ gcc -DFLAG_1 -o foo_1 foo.c
$ gcc -DFLAG_2 -o foo_2 foo.c

How should I write the CMake rules?

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070515/fc63ab6f/attachment.html


More information about the CMake mailing list