[CMake] Linking static targets from sibling directories

David Cole david.cole at kitware.com
Thu Feb 18 10:36:30 EST 2010


What do you mean by "refuses to link the static libraries which are targets
from the subfolders"

I looked at your CMakeLists.txt files, which, at first glance, look
correct... What error do you get?

If you say "make VERBOSE=1" does it give you more data about what might be
going wrong?



On Thu, Feb 18, 2010 at 3:48 AM, Scott MacVicar <macvicar at facebook.com>wrote:

> Hi,
>
> I've been converting a current autoconf project to use CMake, the layout is
> such that there is a root directory and 3 sub directories containing various
> parts of the project.
>
> filters and nls build two static libs and mbfl builds a third static lib
> that links to the previous two.
>
> root
> --filters
> --mbfl
> --nls
>
> mbfl contains
> target_link_libraries(mbfl mbfl_filters)
> target_link_libraries(mbfl mbfl_nls)
>
> but refuses to link the static libraries which are targets from the
> subfolders.
>
> Entire repository is available at http://github.com/scottmac/libmbfl
>
> I could convert it to be built at one single lib in one go but would rather
> keep parity with the autoconf equivalents.
>
> Any help or pointers would be appreciated.
>
> Scott
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100218/ead8c4f4/attachment.htm>


More information about the CMake mailing list