<div class="gmail_quote"><div>Hi Christian,</div><div>   Mike&#39;s comment about setting BOOST_ROOT should work. If this doesn&#39;t, make sure that your directories look like this:</div><div><br></div><div>C:\boost</div>
<div>C:\boost\include</div><div>C:\boost\include\boost-1_50</div><div>C:\boost\include\boost-1_50\boost</div><div>C:\boost\lib</div><div><br></div><div>With the above arrangement of directories,  FindBoost.cmake shouldn&#39;t need any variables to be set by the user.</div>
<div>The problem is often that the pecompiled boost libraries do not use C:\boost\lib but instead use something like C:\boost\lib64 or C:\boost\lib32.</div><div><br></div><div>Regards</div><div>   Andrew</div><div><br></div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---------- Forwarded message ----------<br>From: Michael Jackson &lt;<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>&gt;<br>
To: Christian Henning &lt;<a href="mailto:chhenning@gmail.com">chhenning@gmail.com</a>&gt;<br>Cc: <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>Date: Mon, 30 Jul 2012 21:24:47 -0400<br>Subject: Re: [CMake] Problems with FindBoost.cmake<br>
Where is your boost installed at? What operating system are you using? Is this boost precompiled or compiled by you?<br>
If you set BOOST_ROOT as a cmake variable and point it to the top level directory of your boost installation does that help?<br>
<br>
For example if you boost is installed in C:\Boost then set BOOST_ROOT to C:\Boost<br>
<br>
--<br>
Mike Jackson &lt;<a href="http://www.bluequartz.net" target="_blank">www.bluequartz.net</a>&gt;<br>
<br>
On Jul 30, 2012, at 8:44 PM, Christian Henning wrote:<br>
<br>
&gt; Hi there, I&#39;m trying to figure why cmake cannot find my boost<br>
&gt; installation. Actually, I&#39;m working of some outdated boost&#39;s trunk<br>
&gt; version ( 1.50 ). I&#39;m setting various variables, like BOOST_ROOT,<br>
&gt; BOOST_INCLUDEDIR, etc. But findBoost.cmake always comes up with<br>
&gt; Boost_FOUND = FALSE.<br>
&gt;<br>
&gt; Here is the output I get from that module: ( a more read friendlier<br>
&gt; can be found here: <a href="http://pastebin.com/raw.php?i=6tiRftVW" target="_blank">http://pastebin.com/raw.php?i=6tiRftVW</a> )<br>
&gt;<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:526<br>
&gt; ] Boost not in cache<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:529<br>
&gt; ] _boost_TEST_VERSIONS =<br>
&gt; 1.50;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33.0;1.33<br>

&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:531<br>
&gt; ] Boost_USE_MULTITHREADED = TRUE<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:533<br>
&gt; ] Boost_USE_STATIC_LIBS = on<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:535<br>
&gt; ] Boost_USE_STATIC_RUNTIME = on<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:537<br>
&gt; ] Boost_ADDITIONAL_VERSIONS = 1.50<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:539<br>
&gt; ] Boost_NO_SYSTEM_PATHS =<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:607<br>
&gt; ] Declared as CMake or Environmental Variables:<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:609<br>
&gt; ]   BOOST_ROOT = C:/boost<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:611<br>
&gt; ]   BOOST_INCLUDEDIR = c:\boost\boost<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:613<br>
&gt; ]   BOOST_LIBRARYDIR = C:\boost\stage\lib\x86<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:615<br>
&gt; ] _boost_TEST_VERSIONS =<br>
&gt; 1.50;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.33.0;1.33<br>

&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:668<br>
&gt; ] Include debugging info:<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:670<br>
&gt; ]   _boost_INCLUDE_SEARCH_DIRS =<br>
&gt; c:/boost/boost;C:/boost/include;C:/boost;C:/boost/include;C:/boost;C:\Program<br>
&gt; Files (x86)/boost/include;C:\Program Files<br>
&gt; (x86)/boost;/sw/local/include<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:672<br>
&gt; ]   _boost_PATH_SUFFIXES =<br>
&gt; boost-1_50;boost_1_50;boost-1_50_0;boost_1_50_0;boost-1_50;boost_1_50;boost-1_49_0;boost_1_49_0;boost-1_49;boost_1_49;boost-1_48_0;boost_1_48_0;boost-1_48;boost_1_48;boost-1_47_0;boost_1_47_0;boost-1_47;boost_1_47;boost-1_46_1;boost_1_46_1;boost-1_46_0;boost_1_46_0;boost-1_46;boost_1_46;boost-1_45_0;boost_1_45_0;boost-1_45;boost_1_45;boost-1_44_0;boost_1_44_0;boost-1_44;boost_1_44;boost-1_43_0;boost_1_43_0;boost-1_43;boost_1_43;boost-1_42_0;boost_1_42_0;boost-1_42;boost_1_42;boost-1_41_0;boost_1_41_0;boost-1_41;boost_1_41;boost-1_40_0;boost_1_40_0;boost-1_40;boost_1_40;boost-1_39_0;boost_1_39_0;boost-1_39;boost_1_39;boost-1_38_0;boost_1_38_0;boost-1_38;boost_1_38;boost-1_37_0;boost_1_37_0;boost-1_37;boost_1_37;boost-1_36_1;boost_1_36_1;boost-1_36_0;boost_1_36_0;boost-1_36;boost_1_36;boost-1_35_1;boost_1_35_1;boost-1_35_0;boost_1_35_0;boost-1_35;boost_1_35;boost-1_34_1;boost_1_34_1;boost-1_34_0;boost_1_34_0;boost-1_34;boost_1_34;boost-1_33_1;boost_1_33_1;boost-1_33_0;boost_1_3<br>

&gt; 3_0;boost-1_33;boost_1_33<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:697<br>
&gt; ] location of version.hpp: C:/boost/boost/version.hpp<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:716<br>
&gt; ] version.hpp reveals boost 1.50.0<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:809<br>
&gt; ] guessed _boost_COMPILER = -vc100<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:819<br>
&gt; ] _boost_MULTITHREADED = -mt<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:862<br>
&gt; ] _boost_RELEASE_ABI_TAG = -s<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:864<br>
&gt; ] _boost_DEBUG_ABI_TAG = -sgd<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:907<br>
&gt; ] _boost_LIBRARY_SEARCH_DIRS =<br>
&gt; C:/boost/stage/lib/x86;C:/boost/lib;C:/boost/stage/lib;C:/boost/lib;C:/boost/../lib;C:/boost/stage/lib;C:/boost/lib;C:/boost;C:\Program<br>
&gt; Files (x86)/boost/boost_1_50_0/lib;C:\Program Files<br>
&gt; (x86)/boost/boost_1_50/lib;C:\Program Files (x86)/boost/lib;C:\Program<br>
&gt; Files (x86)/boost;/sw/local/lib<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:978<br>
&gt; ] Searching for THREAD_LIBRARY_RELEASE:<br>
&gt; libboost_thread-vc100-mt-s-1_50;libboost_thread-vc100-mt-s;libboost_thread-mt-s-1_50;libboost_thread-mt-s;libboost_thread<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:1010<br>
&gt; ] Searching for THREAD_LIBRARY_DEBUG:<br>
&gt; libboost_thread-vc100-mt-sgd-1_50;libboost_thread-vc100-mt-sgd;libboost_thread-mt-sgd-1_50;libboost_thread-mt-sgd;libboost_thread-mt;libboost_thread<br>
&gt; -- [ C:/Users/chenning/cmake-2.8.8-win32-x86/share/cmake-2.8/Modules/FindBoost.cmake:1120<br>
&gt; ] Boost_FOUND = FALSE<br>
&gt;<br>
&gt; Can someone spot the problem? For instance I&#39;m not 100% sure what the<br>
&gt; BOOST_LIBRARYDIR is suppose to point to? Is it the binaries or the cpp<br>
&gt; files?<br>
&gt;<br>
&gt; Anyway, any help is very welcome,<br>
&gt; Christian<br>
&gt; --<br>
&gt;<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
<br>

<br></blockquote></div>-- <br>___________________________________________<br>Andrew J. P. Maclean<br><br>___________________________________________<br>