[CMake] Single-shot compilation

Oliver Smith osmith at playnet.com
Wed Feb 17 00:23:40 EST 2010


On systems that support it, I'm wanting to do the equivalent of:

    $(CC) -pipe source1.cpp source2.cpp source3.cpp -fwhole-program

I can't figure out how to tell CMake to pass multiple sources to the 
compiler at once.

(Using versions 2.6 and 2.8)

- Oliver



More information about the CMake mailing list