[CMake] Compile multiple-sources at a time?

Eric Noulard eric.noulard at gmail.com
Fri Jan 20 16:57:28 EST 2012


2012/1/20 Oliver kfsone Smith <osmith at playnet.com>:
> Eric Noulard said the following on 1/20/2012 1:26 AM:
>
>> 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?
>
> "-combine" :)

I see.


More information about the CMake mailing list