[CMake] external projects and transitive dependencies

Micha Hergarden micha.hergarden at gmail.com
Wed Mar 19 02:21:50 EDT 2014


Hi Brian,

ExternalProject_Add has a DEPENDS option. What you can do is let X
depend on Y and use the CMAKE_CACHE_ARGS option to provide the include
path, or use the buildsystem in project X to find the headers itself.

Regards,
Micha

On 03/19/2014 03:11 AM, Brian Lewis wrote:
> If X brings in Y as an external project, and Y brings in Z as an
> external project, is there some way for Y to communicate information
> about Z back to X, e.g., some include directory?
>
> My situation is, X doesn't know anything about Z, but needs to be able
> to find one of Z's headers. I wish I could add Y as an external project
> and then include_directories(${Y_INCLUDE_DIRS}).


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140319/b460bf11/attachment.sig>


More information about the CMake mailing list