<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7655.2">
<TITLE>FindBoost not setting Boost_LIBRARIES</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hello!</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I've been struggling with find_package(boost &#8230;): although it succeeds up to a point, it doesn't finish the job.&nbsp; I must be doing something wrong.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">The output below shows that boost is found, and several of the expected variables are set, but Boost_LIBRARIES is not.&nbsp; I suspect that means&nbsp; that, although the boost installation was found, the particular component (i.e., the unit_test_framework) was not.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">The weird thing is that, when I get to the link step, link knows the exact file name it should link, but doesn't find it:</FONT></P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">1&gt;LINK : fatal error LNK1104: cannot open file 'libboost_unit_test_framework-vc80-mt-gd-1_42.lib'</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Any hints much appreciated!</FONT>

<BR><FONT SIZE=2 FACE="Arial">Nate</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2 FACE="Arial">H:\devel\build&gt;type CMakeLists.txt</FONT>

<BR><FONT SIZE=2 FACE="Arial">cmake_minimum_required(VERSION 2.8)</FONT>

<BR><FONT SIZE=2 FACE="Arial">project(foo)</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">set(Boost_DEBUG TRUE)</FONT>

<BR><FONT SIZE=2 FACE="Arial">find_package(boost REQUIRED COMPONENTS unit_test_framework)</FONT>

<BR><FONT SIZE=2 FACE="Arial">message(STATUS &quot;Boost_VERSION=&quot; ${Boost_VERSION})</FONT>

<BR><FONT SIZE=2 FACE="Arial">message(STATUS &quot;Boost_LIBRARIES=&quot; ${Boost_LIBRARIES})</FONT>

<BR><FONT SIZE=2 FACE="Arial">message(STATUS &quot;Boost_LIBRARY_DIRS=&quot; ${Boost_LIBRARY_DIRS})</FONT>

<BR><FONT SIZE=2 FACE="Arial">message(STATUS &quot;Boost_INCLUDE_DIRS=&quot; ${Boost_INCLUDE_DIRS})</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">H:\devel\build&gt;mkdir devenv</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">H:\devel\build&gt;cd devenv</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">H:\devel\build\devenv&gt;cmake ..</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- Building for: Visual Studio 8 2005</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- Check for working C compiler using: Visual Studio 8 2005</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- Check for working C compiler using: Visual Studio 8 2005 -- works</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- Detecting C compiler ABI info</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- Detecting C compiler ABI info - done</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- Check for working CXX compiler using: Visual Studio 8 2005</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- Check for working CXX compiler using: Visual Studio 8 2005 -- works</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- Detecting CXX compiler ABI info</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- Detecting CXX compiler ABI info - done</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:373 ] Boost not in cache</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:376 ] _boost_TEST_VERSIONS = 1.42;1.42.0;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38</FONT></P>

<P><FONT SIZE=2 FACE="Arial">;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.3</FONT>

<BR><FONT SIZE=2 FACE="Arial">3.0;1.33</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:378 ] Boost_USE_MULTITHREADED = TRUE</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:380 ] Boost_USE_STATIC_LIBS = on</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:439 ] Declared as CMake or Environmental Variables:</FONT></P>

<P><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:441 ]BOOST_ROOT = C:/Program Files/boost/boost_1_42</FONT></P>

<P><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:443 ]BOOST_INCLUDEDIR =</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:445 ]BOOST_LIBRARYDIR =</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:447 ] _boost_TEST_VERSIONS = 1.42;1.42.0;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.38</FONT></P>

<P><FONT SIZE=2 FACE="Arial">;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.3</FONT>

<BR><FONT SIZE=2 FACE="Arial">3.0;1.33</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:496 ] Include debugging info:</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:498 ]_boost_INCLUDE_SEARCH_DIRS = C:/Program Files/boost/boost_1_42/include;C:/Program Files/boost/boost_1_42;C:/boost/include;C:/boost;C:\Program Files/boost/include;C:\Program Files/boost;/sw/local/include</FONT></P>

<P><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:500 ]</FONT>

<BR><FONT SIZE=2 FACE="Arial">_boost_PATH_SUFFIXES = boost-1_42;boost_1_42;boost-1_42_0;boost_1_42_0;boost-1_4</FONT>

<BR><FONT SIZE=2 FACE="Arial">1_0;boost_1_41_0;boost-1_41;boost_1_41;boost-1_40_0;boost_1_40_0;boost-1_40;boos</FONT>

<BR><FONT SIZE=2 FACE="Arial">t_1_40;boost-1_39_0;boost_1_39_0;boost-1_39;boost_1_39;boost-1_38_0;boost_1_38_0</FONT>

<BR><FONT SIZE=2 FACE="Arial">;boost-1_38;boost_1_38;boost-1_37_0;boost_1_37_0;boost-1_37;boost_1_37;boost-1_3</FONT>

<BR><FONT SIZE=2 FACE="Arial">6_1;boost_1_36_1;boost-1_36_0;boost_1_36_0;boost-1_36;boost_1_36;boost-1_35_1;bo</FONT>

<BR><FONT SIZE=2 FACE="Arial">ost_1_35_1;boost-1_35_0;boost_1_35_0;boost-1_35;boost_1_35;boost-1_34_1;boost_1_</FONT>

<BR><FONT SIZE=2 FACE="Arial">34_1;boost-1_34_0;boost_1_34_0;boost-1_34;boost_1_34;boost-1_33_1;boost_1_33_1;b</FONT>

<BR><FONT SIZE=2 FACE="Arial">oost-1_33_0;boost_1_33_0;boost-1_33;boost_1_33</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:524 ] location of version.hpp: C:/Program Files/boost/boost_1_42/boost/version.hpp</FONT></P>

<P><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:543 ] version.hpp reveals boost 1.42.0</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:634 ] guessed _boost_COMPILER = -vc80</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:644 ] _boost_MULTITHREADED = -mt</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:661 ] _boost_STATIC_TAG = -s</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:663 ] _boost_ABI_TAG = gd</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:696 ] _boost_LIBRARIES_SEARCH_DIRS = C:/Program Files/boost/boost_1_42/lib;C:/Program Files/boost/boost_1_42/stage/lib;C:/Program Files/boost/boost_1_42/lib;C:/Program</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Files/boost/boost_1_42/../lib;C:/boost/lib;C:/boost;C:\Program Files/boost/boost</FONT>

<BR><FONT SIZE=2 FACE="Arial">_1_42_0/lib;C:\Program Files/boost/boost_1_42/lib;C:\Program Files/boost/lib;C:\Program Files/boost;/sw/local/lib</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- [ C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:830 ] Boost_FOUND = TRUE</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- Boost version: 1.42.0</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- Boost_VERSION=104200</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- Boost_LIBRARIES=</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- Boost_LIBRARY_DIRS=C:/Program Files/boost/boost_1_42/lib</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- Boost_INCLUDE_DIRS=C:/Program Files/boost/boost_1_42</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- Configuring done</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- Generating done</FONT>

<BR><FONT SIZE=2 FACE="Arial">-- Build files have been written to: H:/devel/build/devenv</FONT>
</P>

<pre style="white-space:normal">________________________________________<br><br>This E-Mail (including any attachments) may contain privileged or confidential information.&nbsp; It is intended only for the addressee(s) indicated above.<br><br>The sender does not waive any of its rights, privileges or other protections respecting this information.&nbsp; <br><br>Any distribution, copying or other use of this E-Mail or the information it contains, by other than an intended recipient, is not sanctioned and is prohibited.<br><br>If you received this E-Mail in error, please delete it and advise the sender (by return E-Mail or otherwise) immediately. <br><br>This E-Mail (including any attachments) has been scanned for viruses. <br><br>It is believed to be free of any virus or other defect that might affect any computer system into which it is received and opened. <br><br>However, it is the responsibility of the recipient to ensure that it is virus free. <br><br>The sender accepts no responsibility for any loss or damage arising in any way from its use.<br><br>E-Mail received by or sent from RBC Capital Markets is subject to review by Supervisory personnel. <br><br>Such communications are retained and may be produced to regulatory authorities or others with legal rights to the information.<br><br>IRS CIRCULAR 230 NOTICE:&nbsp; TO COMPLY WITH U.S. TREASURY REGULATIONS, WE ADVISE YOU THAT ANY U.S. FEDERAL TAX ADVICE INCLUDED IN THIS COMMUNICATION IS NOT INTENDED OR WRITTEN TO BE USED, AND CANNOT BE USED, TO AVOID ANY U.S. FEDERAL TAX PENALTIES OR TO PROMOTE, MARKET, OR RECOMMEND TO ANOTHER PARTY ANY TRANSACTION OR MATTER.<br></pre></BODY>
</HTML>