<pre style="margin-top:0px;margin-bottom:0px">The story actually starts with an compile error:</pre><pre style="margin-top:0px;margin-bottom:0px"><p style="margin:0px"><span style="color:#be1414"> undefined reference to `boost::filesystem3::path::stem() const&#39;</span></p>

<p style="margin:0px"><span style="color:#be1414"><br></span></p><p style="margin:0px"><span style="color:#be1414"><br></span></p></pre><pre style="margin-top:0px;margin-bottom:0px">which I do not understand. I am developing on ubuntu 12.04 with boost 1.46 and 1.48 installed.</pre>

<pre style="margin-top:0px;margin-bottom:0px">AFAIK filesystem V3 is the default since boost 1.45.</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">My cmakelists.txt file contains something on these lines</pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><span style>
</span><pre style="margin-top:0px;margin-bottom:0px"><span style>find_package( Boost COMPONENTS filesystem system iostreams thread regex program_options)</span></pre><span style>
</span><pre style="margin-top:0px;margin-bottom:0px"><span style>if(Boost_FOUND)</span></pre><span style>
</span><pre style="margin-top:0px;margin-bottom:0px"><span style>  SET(inc ${inc} ${Boost_INCLUDE_DIRS})</span></pre><span style>
</span><pre style="margin-top:0px;margin-bottom:0px"><span style>  SET( ${boostlib} ${Boost_LIBRARIES})</span></pre><span style>
</span><pre style="margin-top:0px;margin-bottom:0px"><span style>else()</span></pre><span style>
</span><pre style="margin-top:0px;margin-bottom:0px"><span style> message(STATUS &quot;&gt;&gt;&gt;&gt;&gt; Couldn&#39;t find Boost &lt;&lt;&lt;&lt;&lt; &quot;)</span></pre><span style>
</span><pre style="margin-top:0px;margin-bottom:0px"><span style>endif()</span></pre></pre><pre style="margin-top:0px;margin-bottom:0px"><span style="background-color:rgb(0,0,0)"><br></span></pre>
<pre style="margin-top:0px;margin-bottom:0px"><pre style="margin-top:0px;margin-bottom:0px">message( STATUS &quot;&gt;&gt;&gt;&gt; ${Boost_LIBRARIES} &lt;&lt;&lt;&lt;&quot; )</pre></pre><pre style="margin-top:0px;margin-bottom:0px">
<span style="background-color:rgb(0,0,0)"><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style><br></span></pre><pre style="margin-top:0px;margin-bottom:0px"><span style>to my target I am adding </span></pre>

<pre style="margin-top:0px;margin-bottom:0px"><pre style="margin-top:0px;margin-bottom:0px">TARGET_LINK_LIBRARIES(premtest ${QT_LIBRARIES} ${Boost_LIBRARIES}</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">
<br></pre><pre style="margin-top:0px;margin-bottom:0px">I searched the so file for the stem symbol and did not found them so no I want to build boost myself and somehow tell my project that it should look for the proper version by doing this:</pre>

<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre></pre><pre style="margin-top:0px;margin-bottom:0px">SET(BOOST_MIN_VERSION &quot;1.53.0&quot;)</pre>
<pre style="margin-top:0px;margin-bottom:0px"><span style="font-family:arial">find_package</span><span style="font-family:arial">(</span><span style="font-family:arial"> </span><span style="font-family:arial">Boost</span><span style="font-family:arial"> </span><span style="font-family:arial">${BOOST_MIN_VERSION}</span><span style="font-family:arial"> </span><span style="font-family:arial">REQUIRED</span><span style="font-family:arial"> </span><span style="font-family:arial">COMPONENTS</span><span style="font-family:arial"> </span><span style="font-family:arial">date_time</span><span style="font-family:arial"> </span><span style="font-family:arial">filesystem</span><span style="font-family:arial"> </span><span style="font-family:arial">system</span><span style="font-family:arial"> </span><span style="font-family:arial">program_options)</span></pre>


<pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><pre style="margin-top:0px;margin-bottom:0px">However this info is ignored and this is what the boost cmake script finds.

<p style="margin:0px"><span style="font-family:&#39;Monospace&#39;;font-size:11pt;color:#3c3c3c">/usr/lib/libboost_filesystem-mt.so;/usr/lib/libboost_system-mt.so;/usr/lib/libboost_iostreams-mt.so;/usr/lib/libboost_thread-mt.so;</span></p>
</pre><pre style="margin-top:0px;margin-bottom:0px"><br></pre><div><br></div><div>any help higly appreciated.</div><div><br></div><div>regards</div><div><br></div>-- <br>Witold Eryk Wolski<br><br>Triemlistrasse 155<br>
8047 Zuerich