Re: [CMake] avoid object file recompilation

2007-07-31 Thread Brandon Van Every
On 7/30/07, gga [EMAIL PROTECTED] wrote: Timur Ivanov wrote: The problem is that common.cpp recompiled 3 times but I would like not to do that waste of time. Is it possible ? No and Yes. No, cmake in general does not allow to do it easily or reliably. But your OS does. Make

[CMake] avoid object file recompilation

2007-07-30 Thread Timur Ivanov
Hello I suspect that i am asking very basic question but i am very new to cmake Suppose at top level CMakeLists.txt I have: ADD_EXECUTABLE(test test.cpp ./common/common.cpp) ADD_SUBDIRECTORY(test_1) ADD_SUBDIRECTORY(test_2) Then in test1 directory in CMakeLists.txt ADD_EXECUTABLE(test_1

Re: [CMake] avoid object file recompilation

2007-07-30 Thread Brandon Van Every
On 7/30/07, Timur Ivanov [EMAIL PROTECTED] wrote: The problem is that common.cpp recompiled 3 times but I would like not to do that waste of time. Is it possible ? Yep. Did you look at Chicken yet? Cheers, Brandon Van Every ___ CMake mailing list

Re: [CMake] avoid object file recompilation

2007-07-30 Thread Timur Ivanov
On 7/31/07, Brandon Van Every [EMAIL PROTECTED] wrote: On 7/30/07, Timur Ivanov [EMAIL PROTECTED] wrote: The problem is that common.cpp recompiled 3 times but I would like not to do that waste of time. Is it possible ? Yep. Did you look at Chicken yet? Yes, I did. But it is a little

Re: [CMake] avoid object file recompilation

2007-07-30 Thread Brandon Van Every
On 7/30/07, Timur Ivanov [EMAIL PROTECTED] wrote: On 7/31/07, Brandon Van Every [EMAIL PROTECTED] wrote: On 7/30/07, Timur Ivanov [EMAIL PROTECTED] wrote: The problem is that common.cpp recompiled 3 times but I would like not to do that waste of time. Is it possible ? Yep. Did you

Re: [CMake] avoid object file recompilation

2007-07-30 Thread gga
Timur Ivanov wrote: The problem is that common.cpp recompiled 3 times but I would like not to do that waste of time. Is it possible ? No and Yes. No, cmake in general does not allow to do it easily or reliably. But your OS does. Make common.cpp into either a static or dynamic library and