Alex,
Wow, that must probably be a record for fastest response to a post (3
minutes)!
> I think you have to use
> add_dependencies(d e)
>
> to tell cmake that d depends on e (which it does since it
> needs something from the build of e)
That has fixed it, by changing d's CMakeLists.txt to the following:
SET (THIS_LIB d)
SET (THIS_SRC d.c)
ADD_LIBRARY (${THIS_LIB} ${THIS_SRC})
ADD_DEPENDENCIES (d e)
Note: I tried placing the ADD_DEPENDENCIES in the top level CMakeLists
at various positions but this didn't work.
Thanks
- Trevor
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake