<html><body bgcolor="#FFFFFF"><div>The linking doesn't include the .a files from the other directories, the final lib is missing those symbols.<span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.226562); -webkit-composition-frame-color: rgba(77, 128, 180, 0.226562);"><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); ">I checked with nm here, the error doesn't occur until until I attempt to use the built static library.</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.226562); -webkit-composition-frame-color: rgba(77, 128, 180, 0.226562);"><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.289062); -webkit-composition-fill-color: rgba(175, 192, 227, 0.222656); -webkit-composition-frame-color: rgba(77, 128, 180, 0.222656);">Scott</span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.292969); -webkit-composition-fill-color: rgba(175, 192, 227, 0.226562); -webkit-composition-frame-color: rgba(77, 128, 180, 0.226562);"><br></span></div><div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "> </span></div><div><br>On 18 Feb 2010, at 07:36, "David Cole" <<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>What do you mean by "refuses to link the static libraries which are targets from the subfolders"<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 "make VERBOSE=1" 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"><<a href="mailto:macvicar@facebook.com"><a href="mailto:macvicar@facebook.com">macvicar@facebook.com</a></a>></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'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"><a href="http://github.com/scottmac/libmbfl">http://github.com/scottmac/libmbfl</a></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"><a href="http://www.kitware.com">www.kitware.com</a></a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank"><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></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"><a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a></a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank"><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a></a><br></blockquote></div><br></div>
</div></blockquote></body></html>