[CMake] multiple project hsaring the same files.
Luca Cappa
luca.cappa at i-medlab.com
Mon Sep 26 08:35:30 EDT 2005
Alexander Neundorf wrote:
> Hi,
>
>
>>Von: Luca Cappa <luca.cappa at i-medlab.com>
>>
>>Hello,
>>
>>i have 2 executables that share some source files. With the old version
>>of CMake (Feb 2005), when compiling the entire project, the .o files
>>were built one single time, i.e. the time the second executable's
>>sources were compiling, the object files already generated were being
>>used. Now they are built once for any given executable, doubling the
>>compilation-time. Any hint? How to reuse the object files already
>>generated (without creating a static/shared library of course)?
>
>
> That's a new feature. I think the only thing you can currently do is to
> create a static lib and link to this lib.
> Or cmake would add support for something like the libtool convenience
> libs, i.e. a collection of object files which can be reused by apps or
> shared libs.
>
Now I switched back to the old version of cmake (feb 2005): in fact
till i will create the lbraries of shared object files i cannot use the
latest version of cmake.
>
>>Besides, how to compile a single .cpp file? I was used to issue the
>>following: "make SourceFile.o", but now it does work no more :\
>
>
> Which version of cmake are you using ? Works here with cmake
> 2.3-20050718.
I was using the cmake from the cvs of today.
Greetings,
Luca
More information about the CMake
mailing list