[cmake-developers] LINK_INTERFACE_LIBRARIES-genex topic review
Brad King
brad.king at kitware.com
Thu Jan 10 10:20:43 EST 2013
Steve,
While reviewing this topic I ran the ExportImport test to look for
generator expressions in a link interface property. I do not see
any. The test C++ code appears to verify that libraries are linked
but it is compiled into a static library as added by this commit:
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=894f52f3#patch7
Therefore it never really links. If I change add_library to
add_executable then the test fails with
/usr/bin/ld: cannot find -ltestLibsDepends
If I fix the typo (s/Libs/Lib/) then it fails with
deps_iface.cpp:(.text+0x11): undefined reference to `testLibDepends()'
deps_iface.cpp:(.text+0x1f): undefined reference to `TestLibLibraryRequired::foo()'
because the library is not actually linked.
Please take a look.
Thanks,
-Brad
More information about the cmake-developers
mailing list