Ah.. think I've answered my own question.  Looks like I need to use
TARGET_LINK_LIBRARIES() instead of ADD_DEPENDENCIES().

 

Aaron C. Meadows 

________________________________

From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf
Of Meadows, Aaron C.
Sent: Wednesday, May 19, 2010 1:31 PM
To: cmake@cmake.org
Subject: [CMake] Chaining Dependencies

 

Hi all.  I hope this isn't a terribly obvious question that I just can't
find in the documentation..

 

If I have an executable 'A' that depends on a static library 'B', and
static library 'B' depends on static library 'C', can I capture this
dependency as part of the CMakeLists.txt for static library 'B', and
have it picked up by the CMakeLists.txt for executable 'A'?

 

What I want to avoid is needing to know the complete dependencies in
executable 'A' beyond what it directly depends on (static library 'B').

 

Thanks!

 

Aaron Meadows
Software Engineer

Thomson Reuters

Phone: 314.468.3530
Mobile: 636.541.6139
aaron.mead...@thomsonreuters.com
thomsonreuters.com

 


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. 



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.

_______________________________________________
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