[CMake] add_dependencies with an imported target
Joachim de Vries
jvr at ashampoo.com
Thu Mar 5 08:59:13 EST 2009
CMake version 2.7-20080708
Mac OSX 10.5
XCode 3.0
I have a problem with add_dependencies.
If I add an imported static lib like this:
add_library("mylib" STATIC IMPORTED)
and try to add a dependency to this target on another target like this:
add_dependencies(myapp "mylib")
I get the following error:
CMake Error: Unknown Target referenced : mylib
CMake Error: Target: myapp depends on unknown target: mylib
Is it not possible to add imported targets to dependency list?
Regards
Joachim de Vries
More information about the CMake
mailing list