[CMake] Compile multiple-sources at a time?

Eric Noulard eric.noulard at gmail.com
Fri Jan 20 02:26:26 EST 2012


2012/1/19 Oliver kfsone Smith <osmith at playnet.com>:
> I realize not every build environment supports the option, but is there a
> way to get CMake to generate Makefiles which aggregate source files, e.g.
>
> $ g++ -pipe -o library.a lib1.cpp lib2.cpp lib3.cpp
> $ g++ -pipe -o exeutable file1.cpp file2.cpp file3.cpp library.a

I don't think so.
Why do you want to do that?
Are you seeking for performance? Thus the "-pipe" option?

CMake generates makefiles that handle the -j option of make quite nicely?
-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org


More information about the CMake mailing list