I&#39;m having a problem with FindBoost.cmake with cmake 2.6.3 under win32 when cross-compiling only ( I have boost version 1.38.0). I have the environment variable BOOST_ROOT set to the directory containing the install of boost. If I build my project using &quot;default native compilers&quot; for VS 2008 the FindBoost works fine. When I select &quot;specify toolchain for crosscompiling&quot; to build for QNX Momentics, the FindBoost stops working. Can somebody please help me out as I&#39;ve spent some time to look into this and it doesn&#39;t seem to be an incorrect usage of FindBoost. Here is the output from cmake when I hit configure -<br>
<br>Compiling for QNX Momentics
<p style="margin: 0px; text-indent: 0px;">[ C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmake:322 ] Boost not in cache</p>
<p style="margin: 0px; text-indent: 0px;">[ C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmake:325 ] _boost_TEST_VERSIONS = 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</p>

<p style="margin: 0px; text-indent: 0px;">[ C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmake:327 ] Boost_USE_MULTITHREADED = TRUE</p>
<p style="margin: 0px; text-indent: 0px;">[ C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmake:329 ] Boost_USE_STATIC_LIBS = </p>
<p style="margin: 0px; text-indent: 0px;">[ C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmake:387 ] Declared as CMake or Environmental Variables:</p>
<p style="margin: 0px; text-indent: 0px;">[ C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmake:389 ]   BOOST_ROOT = C:/dev/libraries/boost</p>
<p style="margin: 0px; text-indent: 0px;">[ C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmake:391 ]   BOOST_INCLUDEDIR = </p>
<p style="margin: 0px; text-indent: 0px;">[ C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmake:393 ]   BOOST_LIBRARYDIR = </p>
<p style="margin: 0px; text-indent: 0px;">[ C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmake:395 ] _boost_TEST_VERSIONS = 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</p>

<p style="margin: 0px; text-indent: 0px;">[ C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmake:445 ] Include debugging info:</p>
<p style="margin: 0px; text-indent: 0px;">[ C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmake:447 ]   _boost_INCLUDE_SEARCH_DIRS = C:/dev/libraries/boost/include;C:/dev/libraries/boost;C:/boost/include;C:/boost;C:\Program Files/boost;/sw/local/include</p>

<p style="margin: 0px; text-indent: 0px;">[ C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmake:449 ]   _boost_PATH_SUFFIXES = boost-1_38_0;boost-1_38;boost-1_37_0;boost-1_37;boost-1_36_1;boost-1_36_0;boost-1_36;boost-1_35_1;boost-1_35_0;boost-1_35;boost-1_34_1;boost-1_34_0;boost-1_34;boost-1_33_1;boost-1_33_0;boost-1_33</p>

<p style="margin: 0px; text-indent: 0px;">[ C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmake:580 ] guessed _boost_COMPILER = -gcc</p>
<p style="margin: 0px; text-indent: 0px;">[ C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmake:590 ] _boost_MULTITHREADED = -mt</p>
<p style="margin: 0px; text-indent: 0px;">[ C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmake:606 ] _boost_STATIC_TAG = </p>
<p style="margin: 0px; text-indent: 0px;">[ C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmake:608 ] _boost_ABI_TAG = d</p>
<p style="margin: 0px; text-indent: 0px;">[ C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmake:637 ] _boost_LIBRARIES_SEARCH_DIRS = C:/dev/libraries/boost/lib;C:/dev/libraries/boost/stage/lib;C:/boost/lib;C:/boost;C:\Program Files/boost/boost___/lib;C:\Program Files/boost;/sw/local/lib</p>

<p style="margin: 0px; text-indent: 0px; color: rgb(255, 0, 0);">CMake Error at C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/FindBoost.cmake:846 (message):</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(255, 0, 0);">  Unable to find the requested Boost libraries.</p>

<p style="margin: 0px; text-indent: 0px; color: rgb(255, 0, 0);">  Unable to find the Boost header files.  Please set BOOST_ROOT to the root</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(255, 0, 0);">  directory containing Boost or BOOST_INCLUDEDIR to the directory containing</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(255, 0, 0);">  Boost&#39;s headers.</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(255, 0, 0);">Call Stack (most recent call first):</p>
<p style="margin: 0px; text-indent: 0px; color: rgb(255, 0, 0);">  CMakeLists.txt:223 (FIND_PACKAGE)</p><br><br>The Boost_INCLUDE_DIR should be set to C:/dev/libraries/boost/boost_1_38_0 which is what happens when I build natively instead of crosscompiling. I&#39;m basically down to the one line (454) in FindBoost.cmake where it calls FIND_PATH for boost/config.hpp and all inputs look correct so I can&#39;t do any further debugging to work out what is failing. The only thing I can think of is that the QNX.cmake platform file is included from the toolchain file, which in turn includes the UnixPaths.cmake which means UNIX is set, but WIN32 isn&#39;t (I&#39;m not sure how this would affect FIND_PATH though?).<br>
<br>Thanks, Ross<br>