<div dir="ltr"><div><div>Ryan,<br><br></div>Thanks for the helper script - I'll try that out on Monday.  <br><br>Does anybody know if the FindBoost.cmake file is maintained by the CMake developers, or does it have a 3rd party maintainer ?  It would be nice to see some logic similar to your script incorporated by default so that other people experience the simplicity of it just working straight out of the box.<br><br>--<br></div>Glenn<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 14 November 2014 16:23, Ryan Pavlik <span dir="ltr"><<a href="mailto:ryan.pavlik@gmail.com" target="_blank">ryan.pavlik@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I've used a script to help it out a bit. I think these Windows installers are new.  Here's the script I use - it basically sets BOOST_ROOT and BOOST_LIBRARYDIR automatically in some cases.<div><a href="https://gist.github.com/rpavlik/586f1fda6e32777623e1" target="_blank">https://gist.github.com/rpavlik/586f1fda6e32777623e1</a><br></div><div><br></div><div>Ryan</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Nov 14, 2014 at 6:56 AM, Glenn Coombs <span dir="ltr"><<a href="mailto:glenn.coombs@gmail.com" target="_blank">glenn.coombs@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div>Hi,<br><br></div>I have installed Boost on Windows 7 for Visual Studio 2013 by running these installers:<br><br>boost_1_56_0-msvc-12.0-32.exe<br>boost_1_56_0-msvc-12.0-64.exe<br><br></div><div>downloaded from <a href="http://sourceforge.net/projects/boost/files/boost-binaries/1.56.0/" target="_blank">http://sourceforge.net/projects/boost/files/boost-binaries/1.56.0/</a>.<br><br></div><div>I'm using CMake 2.8.12.1 and when I try to build a simple Boost example using the filesystem library my cmake configuration step fails to find the required libraries unless I use the BOOST_LIBRARYDIR variable to tell it where the libraries are:<br><br><span style="font-family:monospace">set(BOOST_VERSION_NEEDED 1.53.0)<br><br>if (MSVC)<br>    set(Boost_USE_STATIC_LIBS       ON)<br>    set(Boost_USE_MULTITHREADED     ON)<br>    set(Boost_USE_STATIC_RUNTIME    ON)<br>#   set(BOOST_LIBRARYDIR            /Boost/boost_1_56_0/lib64-msvc-12.0)<br>endif()<br><br>find_package(Boost ${BOOST_VERSION_NEEDED} REQUIRED COMPONENTS system filesystem)</span><br><br></div><div>Given that the library directory is where the official Boost installer put it shouldn't the FindBoost.cmake package be checking that directory by default ?<br></div><div><br></div><div>This is the output from CMake:<br><span style="font-family:monospace"><br>[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:476 ] _boost_TEST_VERSIONS = 1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:478 ] Boost_USE_MULTITHREADED = ON</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:480 ] Boost_USE_STATIC_LIBS = ON</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:482 ] Boost_USE_STATIC_RUNTIME = ON</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:484 ] Boost_ADDITIONAL_VERSIONS = </span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:486 ] Boost_NO_SYSTEM_PATHS = </span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:538 ] Declared as CMake or Environmental Variables:</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:540 ]   BOOST_ROOT = </span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:542 ]   BOOST_INCLUDEDIR = </span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:544 ]   BOOST_LIBRARYDIR = </span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:546 ] _boost_TEST_VERSIONS = 1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:639 ] location of version.hpp: C:/Boost/boost_1_56_0/boost/version.hpp</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:663 ] version.hpp reveals boost 1.56.0</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:739 ] guessed _boost_COMPILER = -vc120</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:749 ] _boost_MULTITHREADED = -mt</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:792 ] _boost_RELEASE_ABI_TAG = -s</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:794 ] _boost_DEBUG_ABI_TAG = -sgd</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:842 ] _boost_LIBRARY_SEARCH_DIRS = C:/Boost/boost_1_56_0/lib;C:/Boost/boost_1_56_0/../lib;C:/Boost/boost_1_56_0/stage/lib;PATHS;C:/boost/lib;C:/boost;/sw/local/lib</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:930 ] Searching for SYSTEM_LIBRARY_RELEASE: libboost_system-vc120-mt-s-1_56;libboost_system-vc120-mt-s;libboost_system-mt-s-1_56;libboost_system-mt-s;libboost_system</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:966 ] Searching for SYSTEM_LIBRARY_DEBUG: libboost_system-vc120-mt-sgd-1_56;libboost_system-vc120-mt-sgd;libboost_system-mt-sgd-1_56;libboost_system-mt-sgd;libboost_system-mt;libboost_system</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:930 ] Searching for FILESYSTEM_LIBRARY_RELEASE: libboost_filesystem-vc120-mt-s-1_56;libboost_filesystem-vc120-mt-s;libboost_filesystem-mt-s-1_56;libboost_filesystem-mt-s;libboost_filesystem</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:966 ] Searching for FILESYSTEM_LIBRARY_DEBUG: libboost_filesystem-vc120-mt-sgd-1_56;libboost_filesystem-vc120-mt-sgd;libboost_filesystem-mt-sgd-1_56;libboost_filesystem-mt-sgd;libboost_filesystem-mt;libboost_filesystem</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">[ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:1017 ] Boost_FOUND = 1</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">Could NOT find Boost</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">Boost version: 1.56.0</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">Boost include path: C:/Boost/boost_1_56_0</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">Could not find the following static Boost libraries:</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">        boost_system</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">        boost_filesystem</span></p><span style="font-family:monospace">
</span><p style="margin:0px;text-indent:0px"><span style="font-family:monospace">No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost.</span></p><p style="margin:0px;text-indent:0px"><br></p>As you can see it is looking for a directory called lib rather than lib64-msvc-12.0.<br><br>--<br></div>Glenn<br></div>
<br></div></div>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</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>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</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>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br></blockquote></div><br></div>
</blockquote></div><br></div>