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).

Is it possible to avoid the relink of test when foo is changed because of a
change in bar.c? Just as an optimization to avoid unnecessary relinks to
speed up the user experience?

thanks
b.
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to