[CMake] Relinking static libs

Jean Lepropre jean.lepropre at star-apic.com
Wed Apr 9 03:55:35 EDT 2008


Hi,

I have a somewhat strange problem when linking with static libraries. I 
have an executable that
links to a static library. If I modify only a source (cpp) file of the 
static lib, the lib is rebuilt and
reinstalled but the executable is not relinked to the static lib (so 
changes are not reflected in the
executable...).

Is there a special way to specify dependence to a static lib or putting 
static lib in the
TARGET_LINK_LIBRARIES command of executable's CMake file suffices?

Cheers,
Jean.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080409/ac4c505b/attachment.htm>


More information about the CMake mailing list