[CMake] Dependency on library in a separate branch
Klaim - Joël Lamotte
mjklaim at gmail.com
Sun Jun 26 18:43:09 EDT 2011
2011/6/26 David Cole <david.cole at kitware.com>
> In your top level CMakeLists.txt:
>
> add_subdirectory(B)
> add_subdirectory(A)
> add_subdirectory(C)
>
> A & C must come after B since they both depend on B.
>
> Does that help?
>
>
Thanks for your answer. It don't seem so, but let me explain you the full
context:
in the root directory I have
add_subdirectory( tools )
in the tools directory i have
add_subdirectory(B)
add_subdirectory(A)
I suppose I already thought that there was some kind of order in dependency
declaration, so it looks like the same you tell me, but to be complete:
In directory A I have the CMakeLists.txt file to define the executable A, no
add_subdirectory().
In directory B I have the CMakeLists.txt file to define the library B, with
add_subdirectory(C)
So it seems that your suggestion don't work but the difference remains in
the tree structure so I'm not sure what is impacted.
Maybe I did something wrong somewhere else.
The full repostory is up to date now there:
http://code.google.com/p/art-of-sequence/source/browse/
In tools directory, project A is aosdesigner, project B is aoslcpp, project
C is the test project under aoslcpp.
I feel really dumb, I'm sure it's obvious but can't find why it don't work
with aosdesigner project that now requires aoslcpp....
Klaim - Joël Lamotte
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110627/a8863c65/attachment.htm>
More information about the CMake
mailing list