[CMake] Dependencies on imported libraries

Dennis Schridde devurandom at gmx.net
Wed Aug 4 14:57:54 EDT 2010


On Sunday 01 August 2010 20:50:05 Dennis Schridde wrote:
> I just notice that
this command does not do what I expected it to do:
> 
> set_property(TARGET
MyLib PROPERTY IMPORTED_LOCATION
> "${MYLIB_DIR}/build")
> 
> Apparently it
sets the path to the *file* that is
> MyLib, not to the directory it is in.
Is there a property to set the path
> to the *directory*?
> With CMake
guessing how the library is named, based on the
> platform and the type of
library? (Should be rather easy, just assume that
> it has the same name as
a library that CMake would generate.)
Does anyone have a suggestion how to
do this?

--Dennis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100804/29989353/attachment.pgp>


More information about the CMake mailing list