<div dir="ltr">Hello,<br><br>Under Windows, I can't find Boost libraries.<br><br>I have downloaded Multithread DLL for Visual Studio 2003 and tried to find them with CMake 2.6-1. Boost version is 1.35<br>CMake finds headers but can't find libraries. CMake search the following directories :<br>
<ul><li>C:/boost/lib</li><li>C:/boost</li><li>$ENV{ProgramFiles}/boost/boost_${Boost_FIND_VERSION_MAJOR}_${Boost_FIND_VERSION_MINOR}_${Boost_FIND_VERSION_PATCH}<br></li><li>$ENV{ProgramFiles}/Boost</li></ul>Third path refers to variables ${Boost_FIND_VERSION_MAJOR}, ${Boost_FIND_VERSION_MINOR} and ${Boost_FIND_VERSION_PATCH} but I don't want to specify a specific version. So, this paths is valued at C:\Program Files/boost/boost___/lib.<br>
<br>Standard Boost installer installs libraries to "C:\Program Files\boost\boost_1_35_0\lib".<br><br>So, I suggest this patch. After reading Boost_LIB_VERSION and Boost_VERSION in boost/version.hpp, we could add path<br>
$ENV{ProgramFiles}/boost/boost_${Boost_MAJOR_VERSION}_${Boost_MINOR_VERSION}_${Boost_SUBMINOR_VERSION}/lib<br>to library search dirs. It works fine for me.<br><br>Could this be applied to future CMake versions ?<br><br>Thanks,<br>
<br>J. Bedouet<br><br><br> IF(Boost_INCLUDE_DIR)<br> ...<br> IF(NOT "${Boost_VERSION}" STREQUAL "0")<br> ...<br> ENDIF(NOT "${Boost_VERSION}" STREQUAL "0")<br> <br>
> SET(_boost_LIBRARIES_SEARCH_DIRS<br>> ${_boost_LIBRARIES_SEARCH_DIRS}<br>> "$ENV{ProgramFiles}/boost/boost_${Boost_MAJOR_VERSION}_${Boost_MINOR_VERSION}_${Boost_SUBMINOR_VERSION}/lib"<br>> )<br>
<br> ELSE(Boost_INCLUDE_DIR)<br> ...<br> ENDIF(Boost_INCLUDE_DIR)<br><br></div>