I seem to recall being able to add dependencies to an imported library with target_link_libraries with 2.6.2:<br><br>add_library(mylib SHARED IMPORTED)<br><br>set_target_properties(mylib PROPERTIES<br> IMPORTED_LOCATION ${mylib_loc}<br>
)<br><br>target_link_libraries(mylib<br> ${DEPENDENT_LIB1}<br> )<br><br>This seems to generate an error now:<br><br><span style="color: rgb(255, 0, 0);"> Cannot specify link libraries for target "mylib" which is not built by this</span>
<p style="margin: 0px; text-indent: 0px; color: rgb(255, 0, 0);"> project.</p><br>Is this the intended behavior?<br><br>I imagine I could do something similar with:<br><br>set_target_properties(mylib PROPERTIE<br> IMPORTED_LINK_INTERFACE_LIBRARIES ${DEPENDENT_LIB1}<br>
)<br><br>Is this the right way to go about doing this?<br><br>Thanks,<br>James<br>