[Cmake] Compiling the same source file with different Compiler flags
Karelitz, David B
dbkarel at sandia.gov
Thu Jun 3 18:23:49 EDT 2004
> Hi,
>
> I'm trying to write a CMakeLists.txt file that compiles the same source
> file twice with different compiler flags and then makes 2 libraries, each
> with a different version of the compiled source.
>
> So if the source is foo.c, I would like to compile foo.c using -DBAR in
> one library and using -DNOBAR in another library.
>
> Thanks,
> Dave Karelitz
> Sandia National Laboratories
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20040603/191dd5e7/attachment.html
More information about the Cmake
mailing list