[CMake] Same source, same cmakelists.txt, multiple compile flags

Patrick Brannan brannanster at gmail.com
Tue Oct 11 17:02:47 EDT 2005


I would like to compile the same set of source files more than once using
different compile flags each time. I can't seem to find a clean way to do
this without modifying the project's source to include a generated
configuration header file. Does anybody know of an easy way to do this with
CMake and a single CMakeLists file?

It seems like there should be a simple way to do this, but I am not getting
the picture.

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20051011/08b1a9d7/attachment.htm


More information about the CMake mailing list