<div dir="ltr">Are your libraries mutually dependent?  You may be hitting the mutually-dependent static library problem.  Look for the word "mutual" near the end of <a href="http://www.cmake.org/cmake/help/v3.0/command/target_link_libraries.html">http://www.cmake.org/cmake/help/v3.0/command/target_link_libraries.html</a>, that section explains some of what is going on.</div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 21, 2014 at 2:19 PM, Olaf Peter <span dir="ltr"><<a href="mailto:ope-devel@gmx.de" target="_blank">ope-devel@gmx.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hello Marcel,<div class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Olaf,<br>
<br>
Unless your code snippets are incomplete, I'm missing the following<br>
statement in ./source/eea/ui/CMakeLists.txt<br>
<br>
     target_link_libraries(eea_ui_<u></u>lib<br>
         eea_ui_schematic_lib)<br>
<br>
I'm not sure this is causing the link error, but it's worth a try.<br>
</blockquote></div>
thank you a lot, this solves the linker problem - I have to add these twice, reference to the other lib each time.<div class=""><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Furthermore, I think the order of add_subdirectory(), add_library(), and<br>
target_link_libraries() is important. You might want to check those as well.<br>
</blockquote></div>
The order matches of course, but I haven't never such linker problems. The first time I'm using target_link_lib for a library self. The reason is not clear for me. What happens under the hood here?<div class="HOEnZb">

<div class="h5"><br>
<br>
Thanks,<br>
Olaf<br>
<br>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/<u></u>CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/<u></u>support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/<u></u>consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/<u></u>training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/<u></u>opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/<u></u>mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Cheers,<br>Leif
</div>