Re: [CMake] Avoiding a relink

2009-03-02 Thread Brad King
Philip Lowman wrote: On Fri, Feb 27, 2009 at 5:24 PM, Brad King Try removing an object file from a shared library, rebuild just that library, and then run the executable (which still exists). It will break at runtime, but if you try relinking the executable it will fail at bu

Re: [CMake] Avoiding a relink

2009-03-01 Thread Philip Lowman
On Fri, Feb 27, 2009 at 5:24 PM, Brad King wrote: > Philip Lowman wrote: > >> I wasn't thinking of it in that context when I said that. Yes, I think >> you're correct and I've noticed that behavior before. I usually work around >> it with make foo/fast assuming foo is the shared library I'm pat

Re: [CMake] Avoiding a relink

2009-02-27 Thread Brad King
Philip Lowman wrote: I wasn't thinking of it in that context when I said that. Yes, I think you're correct and I've noticed that behavior before. I usually work around it with make foo/fast assuming foo is the shared library I'm patching. Not sure why CMake does what it does. For the Makef

Re: [CMake] Avoiding a relink

2009-02-27 Thread Philip Lowman
On Fri, Feb 27, 2009 at 2:32 PM, Jed Brown wrote: > On Fri 2009-02-27 20:26, Jed Brown wrote: > > On Fri 2009-02-27 11:09, Bill O'Hara wrote: > > > Lets say I have a CMakeLists.txt like this: > > > > > > add_library(foo STATIC foo.c bar.c) > > > add_executable(test test.c) > > > target_link_libra

Re: [CMake] Avoiding a relink

2009-02-27 Thread Jed Brown
On Fri 2009-02-27 20:26, Jed Brown wrote: > On Fri 2009-02-27 11:09, Bill O'Hara wrote: > > Lets say I have a CMakeLists.txt like this: > > > > add_library(foo STATIC foo.c bar.c) > > add_executable(test test.c) > > target_link_libraries(test foo) > > > > where test.c uses only functions defined

Re: [CMake] Avoiding a relink

2009-02-27 Thread Jed Brown
On Fri 2009-02-27 11:09, Bill O'Hara wrote: > Lets say I have a CMakeLists.txt like this: > > add_library(foo STATIC foo.c bar.c) > add_executable(test test.c) > target_link_libraries(test foo) > > where test.c uses only functions defined in foo.c but not bar.c (assume some > other target will us

Re: [CMake] Avoiding a relink

2009-02-27 Thread Philip Lowman
On Fri, Feb 27, 2009 at 2:09 PM, Bill O'Hara wrote: > Lets say I have a CMakeLists.txt like this: > > add_library(foo STATIC foo.c bar.c) > add_executable(test test.c) > target_link_libraries(test foo) > > where test.c uses only functions defined in foo.c but not bar.c (assume > some other target

[CMake] Avoiding a relink

2009-02-27 Thread Bill O'Hara
Lets say I have a CMakeLists.txt like this: add_library(foo STATIC foo.c bar.c) add_executable(test test.c) target_link_libraries(test foo) where test.c uses only functions defined in foo.c but not bar.c (assume some other target will use foo as well and use functions from both foo.c and bar.c).