[CMake] Multiple executables sharing object files

Bill Hoffman bill.hoffman at kitware.com
Wed Dec 19 11:28:05 EST 2007


Brandon Van Every wrote:
> On Dec 19, 2007 11:08 AM, Joel Schaerer <joel.schaerer at insa-lyon.fr> wrote:
>> Thanks a lot. This is a real issue since compiling everything two or ten times
>> just for the sake of it is *not* efficient. We are currently considering
>> switching back to makefiles and a custom VS project because of this.
> 

Maybe I am missing something, but why not create a static library and 
share it with the executables?  Why try to reuse object files?  CMake 
makes it very easy to create static libraries and link them to executables.

-Bill


More information about the CMake mailing list