<div>I just tried the advise I was given, and the result was the following</div>
<div> </div>
<div>C:\local\workspace\RobWork\build\release&gt;cmake -G &quot;Visual Studio 9 2008&quot; -DCMAKE_BUILD_TYPE=Release ../..<br>-- RobWork version 0.4.0<br>-- Build configuration: Release<br>--  No Default.cmake file loaded, using default settings from config.cmake.template<br>
CMake Warning (dev) at CMakeLists.txt:20 (INCLUDE):<br>  Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH<br>  and POP.  Run &quot;cmake --help-policy CMP0011&quot; for policy details.  Use the<br>
  cmake_policy command to set the policy and suppress this warning.</div>
<div>  The included script</div>
<div>    C:/local/workspace/RobWork/build/ProjectSetup.cmake</div>
<div>  affects policy settings.  CMake is implying the NO_POLICY_SCOPE option for<br>  compatibility, so the effects are applied to the including context.<br>This warning is for project developers.  Use -Wno-dev to suppress it.</div>

<div>-- RobWork ROOT dir: C:/local/workspace/RobWork<br>CMake Error at C:/Programmer/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:879 (message):<br>  Unable to find the requested Boost libraries.</div>
<div>  Boost version: 1.39.0</div>
<div>  Boost include path: C:/local/boost/include/boost-1_39</div>
<div>  The following Boost libraries could not be found:</div>
<div>          boost_thread</div>
<div>  No Boost libraries were found.  You may need to set Boost_LIBRARYDIR to the<br>  directory containing Boost libraries or BOOST_ROOT to the location of<br>  Boost.<br>Call Stack (most recent call first):<br>  build/depends.cmake:8 (FIND_PACKAGE)<br>
  build/RobWorkSetup.cmake:32 (INCLUDE)<br>  CMakeLists.txt:36 (INCLUDE)</div>
<div> </div>
<div> </div>
<div>When I was building boost this time, I did ran the following commands: </div>
<div>- &quot;C:\Downloads\boost_1_39_0&gt;bjam.exe --prefix=C:\local\boost -toolset=msvs define=&quot;_SECURE_SCL=0&quot; define=&quot;_HAS_ITERATOR_DEBUGGING=0&quot; -d+2&quot;</div>
<div>- &quot;C:\Downloads\boost_1_39_0&gt;bjam.exe install --prefix=C:\local\boost&quot;</div>
<div> </div>
<div>I removed all the old enviromental variables for boost and created the following variable</div>
<div>-  BOOST_ROOT = C:\local\boost</div>
<div> </div>
<div>In &quot;C:\local\boost\lib&quot; I have </div>
<div>- libboost_thread-vc90-mt.lib</div>
<div>- libboost_thread-vc90-mt-gd-1_39.lib</div>
<div>- libboost_thread-vc90-mt-gd.lib</div>
<div> </div>
<div>In &quot;C:\local\boost\include\boost-1_39&quot; I have</div>
<div> - A folder named &quot;boost&quot;, but no subfolder or file called &quot;boost_thread&quot;</div>
<div> </div>
<div>I must missing some variable or setting, but I can&#39;t figure out what...</div>
<div> </div>
<div>Regards</div>
<div> </div>
<div>Martin Peter Christansen</div>
<div><br> </div>
<div class="gmail_quote">2009/11/12 Mike Jackson <span dir="ltr">&lt;<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>&gt;</span><br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Usually when I build Boost on Windows I use the<br>--prefix=C:\Path\To\Boost and the &quot;install&quot; target instead of the<br>
stage target.<br><br>Then I set BOOST_ROOT to what ever I set the --prefix argument to.<br>That seems to always work.<br><br>And to try this out you will need a clean RobWork build directory. So,<br>to sum up, try rebuilding boost by including the --prefix=C:\.... and<br>
&quot;install&quot; arguments to bjam.<br><br>Then remove everything from your RobWork build directory and then<br>reconfigure RobWork using cmake.<br>_________________________________________________________<br>Mike Jackson                  <a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a><br>
BlueQuartz Software                    <a href="http://www.bluequartz.net/" target="_blank">www.bluequartz.net</a><br>Principal Software Engineer                  Dayton, Ohio<br>
<div>
<div></div>
<div class="h5"><br><br><br><br>On Wed, Nov 11, 2009 at 7:41 PM, Martin Peter Christiansen<br>&lt;<a href="mailto:martin.p.christiansen@gmail.com">martin.p.christiansen@gmail.com</a>&gt; wrote:<br>&gt; For the last day or so I have tried to compile a project(RobWork) for Visual<br>
&gt; Studio 2008 using Cmake.<br>&gt;<br>&gt; But my problem is that Cmake claims i can&#39;t find Boost dependencies.<br>&gt;<br>&gt;<br>&gt;<br>&gt; I have been googling the problem on the net, but the only answer I could<br>
&gt; find was that FindBost.cmake was the problem, but not how to solve it.<br>&gt;<br>&gt;<br>&gt;<br>&gt; When i run the project (RobWork) i get the following error:<br>&gt;<br>&gt;<br>&gt;<br>&gt;  C:\Documents and Settings\Martin&gt;cd<br>
&gt; c:\local\workspace\RobWork\build\release<br>&gt;<br>&gt; C:\local\workspace\RobWork\build\release&gt;cmake -G &quot;Visual Studio 9 2008&quot;<br>&gt; -DCMAKE_BUILD_TYPE=Release<br>&gt; ../..<br>&gt; -- RobWork version 0.4.0<br>
&gt; -- Build configuration: Release<br>&gt; CMake Warning (dev) at CMakeLists.txt:20 (INCLUDE):<br>&gt;   Policy CMP0011 is not set: Included scripts do automatic cmake_policy PUSH<br>&gt;   and POP.  Run &quot;cmake --help-policy CMP0011&quot; for policy details.  Use the<br>
&gt;   cmake_policy command to set the policy and suppress this warning.<br>&gt;<br>&gt;   The included script<br>&gt;<br>&gt;     C:/local/workspace/RobWork/build/ProjectSetup.cmake<br>&gt;<br>&gt;   affects policy settings.  CMake is implying the NO_POLICY_SCOPE option for<br>
&gt;   compatibility, so the effects are applied to the including context.<br>&gt; This warning is for project developers.  Use -Wno-dev to suppress it.<br>&gt;<br>&gt; -- RobWork ROOT dir: C:/local/workspace/RobWork<br>&gt; CMake Error at C:/Programmer/CMake<br>
&gt; 2.8/share/cmake-2.8/Modules/FindBoost.cmake:879 (message):<br>&gt;   Unable to find the requested Boost libraries.<br>&gt;<br>&gt;   Boost version: 1.39.0<br>&gt;<br>&gt;   Boost include path: C:/local/boost_1_39_0<br>
&gt;<br>&gt;   The following Boost libraries could not be found:<br>&gt;<br>&gt;           boost_thread<br>&gt;<br>&gt;   No Boost libraries were found.  You may need to set Boost_LIBRARYDIR to<br>&gt; the<br>&gt;   directory containing Boost libraries or BOOST_ROOT to the location of<br>
&gt;   Boost.<br>&gt; Call Stack (most recent call first):<br>&gt;   build/depends.cmake:8 (FIND_PACKAGE)<br>&gt;   build/RobWorkSetup.cmake:32 (INCLUDE)<br>&gt;   CMakeLists.txt:36 (INCLUDE)<br>&gt;<br>&gt;<br>&gt;<br>&gt; - I have successfully compiled Boost 1.39.0 to Visual studio 2008, so i get<br>
&gt; lib files like &quot;libboost_date_time-vc90-mt-1_39.lib&quot; in<br>&gt; &lt;boost-root&gt;/stage/lib.<br>&gt;<br>&gt;<br>&gt;<br>&gt; - Boost have been placed in “C:\local\boost_1_39_0”<br>&gt;<br>&gt;<br>&gt;<br>&gt; - The following environment variables has been added to Windows BOOST_ROOT =<br>
&gt; C:\local\boost_1_39_0 and BOOST_LIBRARYDIR = $BOOST_ROOT\stage\lib<br>&gt;<br>&gt;<br>&gt;<br>&gt; - Both Cmake 2.6 and 2.8r2 have been used to compile the project, with no<br>&gt; success.<br>&gt;<br>&gt;<br>&gt;<br>
&gt;<br>&gt;<br>&gt; What I need is a solution, which can help me compile this project using<br>&gt; Visual Studio 2008<br>&gt;<br>&gt;  Is there some way I can setup FindBoost.cmake, so it will accept and boost<br>&gt; correctly????<br>
&gt;<br>&gt;<br>&gt;<br>&gt; Regards<br>&gt;<br>&gt;<br>&gt;<br>&gt; Martin Peter Christiansen<br>&gt;<br>&gt;<br>&gt;<br></div></div>&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<br>&gt; <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:<br>
&gt; <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>
&gt;<br></blockquote></div><br>