[CMake] Automatic depedencies added by target_link_libraries "breaks" make -k ?

Alexandre.Feblot at thomsonreuters.com Alexandre.Feblot at thomsonreuters.com
Thu Apr 16 08:15:53 EDT 2009


Hi,

 

Let 's say I have 2 libraries libA and libB, and libA depends on libB,
i.e. I set: target_link_libraries(libA libB).

 


My goal is to build as much as possible of the libA and libB sources to
detect all possible errors and send an error report to developers.

For this, I compile the project with gmake -k.

 

Now, my issue shows up if there is an error in libB. In that case, libA
won't be built at all.

 

I suspect this is due to the automatic dependency created by
target_link_libraries, as specified in the doc:

 

"If any library name matches that of a target in the current project

a dependency will automatically be added in the build system to

make sure the library being linked is up-to-date before the target
links"

 

==> Is there any way to keep the default transitive dependency system so
that link lines are computed automatically, but remove that
make-dependency to enable gmake -k to try building all existing source
files?

 

Thanks

 

Alexandre

 



This email was sent to you by Thomson Reuters, the global news and information company.
Any views expressed in this message are those of the individual sender, except where the sender specifically states them to be the views of Thomson Reuters.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090416/7a9b8a70/attachment.htm>


More information about the CMake mailing list