<br><br><div class="gmail_quote"> <br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
</div>I&#39;ve had good success using the Boost &quot;in a subdirectory&quot; recipe,<br>
which builds only the parts I need. �This is on linux/mac with gcc and<br>
make, so YMMV, but I think the relevant parts of my CMake file are:<br>
<br></blockquote><div><br>Sweet all I need to do is switch to Linux... this is now reason 10463 on my reasons to switch OS&#39;s.� :-)<br>�</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

# Variables to configure how boost is built<br>
# If we need more libraries add them to the BUILD_PROJECTS variable<br>
set(BUILD_TESTS 0 CACHE INTERNAL &quot;&quot;)<br>
set(ENABLE_SHARED 1 CACHE INTERNAL &quot;&quot;)<br>
set(ENABLE_STATIC 1 CACHE INTERNAL &quot;&quot;)<br>
&lt;set a few more config options&gt;<br>
</blockquote><div><br>Above are set by default so I do not think this is a problem in my system.<br><br>�</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
set(BUILD_PROJECTS date_time program_options filesystem system regex<br>
CACHE INTERNAL &quot;&quot;)<br></blockquote><div><br>I tried this set(BUILD_PROJECTS thread filesystem ... ) on Windows and ended up with a phantom boost_filesystem project... weird ... see my post above, but I did get thread (the first item in the list)� I will verify this again.<br>
�</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
...<br>
# Exclude boost libs from the all target, they will be built<br>
# as dependencies of other targets that require them.<br>
add_subdirectory(vendor/boost/boost EXCLUDE_FROM_ALL)<br>
...<br></blockquote><div><br>maybe I need to use the EXCLUDE_FROM_ALL I will try this.<br><br>�</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

include_directories(${project_SOURCE_DIR}/vendor/boost/boost)<br>
...<br>
<br>
In my subprojects&#39; CMakeLists.txt files, I then add dependent<br>
libraries as required:<br>
target_link_libraries(target_name boost_program_options-static<br>
boost_regex-static)<br>
<br></blockquote><div><br>Thanks for the target_link_libraries syntax I was wondering what to put for this I was trying multiple variants.<br><br></div></div><br>-- <br>Brian J. Davis<br><br>