Mike, good idea, but I was trying to stay away from boost&#39;s cmake until they didn&#39;t make set a flag saying &quot; I agree this is experimental&quot; haha.<br><br>Andreas, oh no! Wow what a terrible goof on my part! I forgot that I had added that second target... I&#39;m sure that was the problem but I&#39;ll check it out and the morning and report back if there are any problem - sorry for the mix up!<br>
<br clear="all">Thanks,<br><br>David<br>
<br><br><div class="gmail_quote">On Wed, Apr 15, 2009 at 11:49 AM, Andreas Pakulat <span dir="ltr">&lt;<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 15.04.09 11:09:43, David Doria wrote:<br>
&gt; I&#39;m using Fedora 10. The KDevelop3 and normal makefile generator produce the<br>
&gt; same result.  CMake version: ccmake version 2.6-patch 3<br>
&gt;<br>
&gt; My CMakeLists.txt file is:<br>
&gt; --------------------------------------------------------<br>
&gt; cmake_minimum_required(VERSION 2.6)<br>
&gt;<br>
&gt; Project(BoostProgramOptions)<br>
&gt;<br>
&gt; INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES} /home/doriad/src/boost)<br>
&gt;<br>
&gt; LINK_DIRECTORIES(${LINK_DIRECTORIES} /home/doriad/bin/boost/lib)<br>
&gt;<br>
&gt; ADD_EXECUTABLE(BoostProgramOptions BoostProgramOptions.cpp)<br>
&gt; TARGET_LINK_LIBRARIES(BoostProgramOptions boost_program_options)<br>
                                            ^^^^^^^^^^^^^^^^^^^^^^<br>
<br>
&gt; ADD_EXECUTABLE(MultipleLists MultipleLists.cpp)<br>
&gt; TARGET_LINK_LIBRARIES(MultipleLists boost_program_options-mt)<br>
</div>                                      ^^^^^^^^^^^^^^^^^^^^^^^^^<br>
<br>
Do you notice a difference?<br>
<div class="im"><br>
&gt; --------------------------------------------------------<br>
&gt;<br>
&gt; and the link.txt that is produced is:<br>
&gt;<br>
&gt; --------------------------------------------------------<br>
&gt; /usr/lib/ccache/c++     -fPIC<br>
&gt; CMakeFiles/BoostProgramOptions.dir/BoostProgramOpt<br>
&gt; ions.cpp.o  -o BoostProgramOptions -rdynamic -L/home/doriad/bin/boost/lib<br>
&gt; -lboos<br>
&gt; t_program_options -Wl,-rpath,/home/doriad/bin/boost/lib<br>
&gt; --------------------------------------------------------<br>
<br>
</div>This link.txt is for BoostProgramOptions which you specified should link<br>
against &quot;boost_program_options&quot; not &quot;boost_program_options-mt&quot;.<br>
<br>
Andreas<br>
<font color="#888888"><br>
--<br>
Try to value useful qualities in one who loves you.<br>
</font><div><div></div><div class="h5">_______________________________________________<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>
</div></div></blockquote></div><br>