[Cmake] Compiling the same source file with different Compiler
flags
Alexander Neundorf
a.neundorf-work at gmx.net
Fri Jun 4 01:55:59 EDT 2004
Hi Dave,
> > 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.
One way to do this would be to create two subdirs each with a
CMakeLists.txt for the lib, which only differ in this one define. That the
sources are in another subdir is no problem.
Bye
Alex
--
"Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info
More information about the Cmake
mailing list