Mike, good idea, but I was trying to stay away from boost's cmake until they didn't make set a flag saying " I agree this is experimental" haha.<br><br>Andreas, oh no! Wow what a terrible goof on my part! I forgot that I had added that second target... I'm sure that was the problem but I'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"><<a href="mailto:apaku@gmx.de">apaku@gmx.de</a>></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>
> I'm using Fedora 10. The KDevelop3 and normal makefile generator produce the<br>
> same result. CMake version: ccmake version 2.6-patch 3<br>
><br>
> My CMakeLists.txt file is:<br>
> --------------------------------------------------------<br>
> cmake_minimum_required(VERSION 2.6)<br>
><br>
> Project(BoostProgramOptions)<br>
><br>
> INCLUDE_DIRECTORIES(${INCLUDE_DIRECTORIES} /home/doriad/src/boost)<br>
><br>
> LINK_DIRECTORIES(${LINK_DIRECTORIES} /home/doriad/bin/boost/lib)<br>
><br>
> ADD_EXECUTABLE(BoostProgramOptions BoostProgramOptions.cpp)<br>
> TARGET_LINK_LIBRARIES(BoostProgramOptions boost_program_options)<br>
^^^^^^^^^^^^^^^^^^^^^^<br>
<br>
> ADD_EXECUTABLE(MultipleLists MultipleLists.cpp)<br>
> TARGET_LINK_LIBRARIES(MultipleLists boost_program_options-mt)<br>
</div> ^^^^^^^^^^^^^^^^^^^^^^^^^<br>
<br>
Do you notice a difference?<br>
<div class="im"><br>
> --------------------------------------------------------<br>
><br>
> and the link.txt that is produced is:<br>
><br>
> --------------------------------------------------------<br>
> /usr/lib/ccache/c++ -fPIC<br>
> CMakeFiles/BoostProgramOptions.dir/BoostProgramOpt<br>
> ions.cpp.o -o BoostProgramOptions -rdynamic -L/home/doriad/bin/boost/lib<br>
> -lboos<br>
> t_program_options -Wl,-rpath,/home/doriad/bin/boost/lib<br>
> --------------------------------------------------------<br>
<br>
</div>This link.txt is for BoostProgramOptions which you specified should link<br>
against "boost_program_options" not "boost_program_options-mt".<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>