[CMake] OBJECT_DEPENDS and target-level dependency.
Tyler Roscoe
tyler at cryptio.net
Sun Aug 16 13:23:23 EDT 2009
On Sun, Aug 16, 2009 at 09:54:09AM +0200, Óscar Fuentes wrote:
> The source files of a library depend on generated files from another
> library on its parent directory. Let's call them libParent and libChild.
>
> For the source files on libChild I do
>
> SET_SOURCE_FILES_PROPERTIES(some_source.cpp
> PROPERTIES OBJECT_DEPENDS libParent)
>
> This way I try to delay the compilation of some_source.cpp until
> libParent is finished.
Can you just use add_dependencies (libChild libParent)?
> cmake 6.4.4, unix makefiles, gnu make, linux.
There is no CMake 6.4.4.
tyler
More information about the CMake
mailing list