[CMake] Dependencies on imported libraries

Dennis Schridde devurandom at gmx.net
Sun Aug 1 14:50:05 EDT 2010


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.)

Thanks in
advance,
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/20100801/4e0083a7/attachment.pgp>


More information about the CMake mailing list