What do you mean by &quot;refuses to link the static libraries which are targets from the subfolders&quot;<div><br></div><div>I looked at your CMakeLists.txt files, which, at first glance, look correct... What error do you get?</div>
<div><br></div><div>If you say &quot;make VERBOSE=1&quot; does it give you more data about what might be going wrong?</div><div><br><br></div><div><br><div class="gmail_quote">On Thu, Feb 18, 2010 at 3:48 AM, Scott MacVicar <span dir="ltr">&lt;<a href="mailto:macvicar@facebook.com">macvicar@facebook.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div style="word-wrap:break-word">Hi,<div><br></div><div>I&#39;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.</div>
<div><br></div><div>filters and nls build two static libs and mbfl builds a third static lib that links to the previous two.</div><div><br></div><div>root</div><div>--filters</div><div>--mbfl</div><div>--nls</div><div><br>
</div><div>mbfl contains</div><div>target_link_libraries(mbfl mbfl_filters)</div><div>target_link_libraries(mbfl mbfl_nls)</div><div><br></div><div>but refuses to link the static libraries which are targets from the subfolders.</div>
<div><br></div><div>Entire repository is available at <a href="http://github.com/scottmac/libmbfl" target="_blank">http://github.com/scottmac/libmbfl</a> </div><div><br></div><div>I could convert it to be built at one single lib in one go but would rather keep parity with the autoconf equivalents.</div>
<div><br></div><div>Any help or pointers would be appreciated.</div><div><br></div><font color="#888888"><div>Scott</div></font></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</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/opensource/opensource.html</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/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div>