<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I am trying to build an Open Source project called PCL which uses Boost, and CMake’s ability to find the Boost libraries seems dependent on whether the BOOST_LIBRARYDIR contains a literal path string, or whether it contains a string that
 incorporates the expansion of BOOST_ROOT. Here are the details:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Boost is installed from a pre-built installer in the folder C:\local\boost_1_55_0. This folder contains, among other things, a subfolder called “boost”, which contains the headers, and a subfolder called “lib64-msvc-12.0”, which contains
 64-bit libraries built with MS Visual Studio 2013. Ordinarily, CMake would like that folder to be called simply “lib”, but that’s not what the installer created, so I’m trying to override the default with environment variables. I have the following three environment
 variables defined, all of which are of type “Expandable string”:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">BOOST_ROOT=C:\local\boost_1_55_0<o:p></o:p></p>
<p class="MsoNormal">BOOST_INCLUDEDIR=%BOOST_ROOT%<o:p></o:p></p>
<p class="MsoNormal">BOOST_LIBRARYDIR=%BOOST_ROOT%\lib64-msvc-12.0<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">With these settings, CMake reports an error during the configuration process, as follows:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="margin-left:.5in"><span style="color:red">CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.0/Modules/FindBoost.cmake:1179 (message):<br>
Unable to find the requested Boost libraries.<br>
<br>
Boost version: 1.55.0<br>
<br>
Boost include path: C:/local/boost_1_55_0<br>
<br>
Could not find the following Boost libraries:<br>
<br>
boost_system<br>
boost_filesystem<br>
boost_thread<br>
boost_date_time<br>
boost_iostreams<br>
boost_chrono<br>
<br>
No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the<br>
directory containing Boost libraries or BOOST_ROOT to the location of<br>
Boost.<br>
Call Stack (most recent call first):<br>
cmake/pcl_find_boost.cmake:38 (find_package)<br>
CMakeLists.txt:230 (include)<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">But if change the definition of BOOST_LIBRARYDIR by replacing “%BOOST_ROOT%” with the value assigned to BOOST_ROOT, resulting in this:<o:p></o:p></p>
<p class="MsoNormal">BOOST_LIBRARYDIR=C:\local\boost_1_55_0\lib64-msvc-12.0<o:p></o:p></p>
<p class="MsoNormal">the configuration succeeds. The only difference seems to be whether the “C:\local\boost_1_55_0” part of the path is specified explicitly, or obtained implicitly with %BOOST_ROOT%. It would surprise me if this behavior were by design. Does
 anyone have an explanation for this?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Chris<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b><span style="font-family:"Arial","sans-serif"">Christopher R. Volpe, Ph.D.<o:p></o:p></span></b></p>
<p class="MsoNormal"><i><span style="font-family:"Arial","sans-serif";color:gray">Senior Scientist, Remote Sensing & Decision Analytics</span></i><span style="font-size:9.0pt;font-family:"Arial","sans-serif""><o:p></o:p></span></p>
<p class="MsoNormal"><i><span style="font-family:"Arial","sans-serif";color:gray"><o:p> </o:p></span></i></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif""><img width="168" height="60" id="Picture_x0020_1" src="cid:image001.png@01CFB597.6A00A4F0" alt="Description: Description: cid:image003.png@01CE888B.0167BAD0"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#632423">NATIONAL SECURITY</span></b><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:gray">  |
</span></b><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#632423"> INFRASTRUCTURE
</span></b><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:gray"> | 
</span></b><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#632423">ENERGY & ENVIRONMENT
</span></b><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:gray"> |</span></b><b><span style="font-size:8.0pt;font-family:"Arial","sans-serif";color:#632423">  HEALTH SOLUTIONS<o:p></o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif"">Applied Research Associates, Inc.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif"">8537 Six Forks Road, Suite 600, Raleigh, NC 27615 
<span style="color:gray">|</span>  <b><span style="color:#632423">T </span></b>919.582.3380 
<span style="color:gray">|</span>  <b><span style="color:#632423">F</span></b> 919.582.3301
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Arial","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:9.0pt">Find Us Online</span></b><b><span style="font-size:9.0pt"><o:p></o:p></span></b></p>
<p class="MsoNormal"><a href="http://www.ara.com"><span style="font-size:8.0pt;color:blue">www.ara.com</span></a><span style="font-size:8.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><a href="https://www.facebook.com/#!/AppliedResearchAssociates"><span style="font-size:8.0pt;color:blue">Facebook: Applied Research Associates</span></a><span style="font-size:8.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><a href="http://www.linkedin.com/company/8853?trk=tyah"><span style="font-size:8.0pt;color:blue">LinkedIn: Company Page</span></a><span style="font-size:8.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><a href="http://www.linkedin.com/groups/ARA-Employees-Group-4854334?trk=myg_ugrp_ovr"><span style="font-size:8.0pt;color:blue">LinkedIn Group</span></a><span style="font-size:8.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><a href="https://twitter.com/ARA_News_Events"><span style="font-size:8.0pt;color:blue">Twitter: ARA News</span></a><span style="font-size:8.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><a href="http://www.youtube.com/user/AppliedResearch1?feature=mhee"><span style="font-size:8.0pt;color:blue">YouTube:  Applied Research Associates</span></a><span style="font-size:8.0pt"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>