Hey all.  So I noticed a possible bug with the way boost is searched in findboost.cmake.<div><br></div><div>Essentially, if you have the boost static runtimes installed, that&#39;s what Visual Studio will require.  For example, using the thread library, it will need libboost_thread*-sgd*</div>
<div><br></div><div>Yet the non-static-runtime versions are what are searched first, so it only finds libboost_thread*-gd*, and visual studio will give you a link error.</div><div><br></div><div>The reason is that on lines 718 - 738 of findboost.cmake, it defines the NAMES of the boost_STATIC_TAG after it already lists the same version without the boost_STATIC_TAG.  </div>
<div><br></div><div>So what needs to be done is instead of </div><div><br></div><div><div>    FIND_LIBRARY(Boost_${UPPERCOMPONENT}_LIBRARY_RELEASE</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span>   ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}-${Boost_LIB_VERSION}</div>
<div>        NAMES  ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_STATIC_TAG}-${Boost_LIB_VERSION}</div><div>               ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}-${Boost_LIB_VERSION}</div>
<div>               ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_STATIC_TAG}-${Boost_LIB_VERSION}</div><div>               ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}</div><div>               ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_STATIC_TAG}</div>
<div>               ${Boost_LIB_PREFIX}boost_${COMPONENT}</div><div>        HINTS  ${_boost_LIBRARIES_SEARCH_DIRS}</div><div>    )</div></div><div><br></div><div><br></div><div><br></div><div>it should be </div><div><br></div>
<div><br></div><div><div><br></div><div>    FIND_LIBRARY(Boost_${UPPERCOMPONENT}_LIBRARY_RELEASE</div><div>        NAMES  ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}${_boost_STATIC_TAG}-${Boost_LIB_VERSION}</div>
<div><span class="Apple-tab-span" style="white-space:pre">                        </span>   ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_COMPILER}${_boost_MULTITHREADED}-${Boost_LIB_VERSION}</div><div>               ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_STATIC_TAG}-${Boost_LIB_VERSION}</div>
<div>               ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}-${Boost_LIB_VERSION}</div><div>               ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}${_boost_STATIC_TAG}</div><div>               ${Boost_LIB_PREFIX}boost_${COMPONENT}${_boost_MULTITHREADED}</div>
<div>               ${Boost_LIB_PREFIX}boost_${COMPONENT}</div><div>        HINTS  ${_boost_LIBRARIES_SEARCH_DIRS}</div><div>    )</div></div><div><br></div><div>Anybody know who the maintainer is??</div><div><br></div><div>
-assumeR</div>