Lets say I have a CMakeLists.txt like this:<br><br>add_library(foo STATIC foo.c bar.c)<br>add_executable(test test.c)<br>target_link_libraries(test foo)<br><br>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).<br>
<br>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?<br><br>thanks<br>b.<br>