Re: [CMake] Single-shot compilation

2010-02-18 Thread Alexander Neundorf
On Wednesday 17 February 2010, Oliver Smith wrote:
 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.

If you really want that, you have to do that yourself.
In KDE we have a KDE4_ENABLE_FINAL_FLAG, which creates one cpp file which 
includes all other cpp files and then only this one file is compiled.

Alex
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] Single-shot compilation

2010-02-16 Thread Oliver Smith

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

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake