<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body text="#000000" bgcolor="#ffffff">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><span
class="Apple-style-span"
style="border-collapse: collapse; font-family: Arial,'Liberation Sans','DejaVu Sans',sans-serif; font-size: 12px; line-height: 15px; text-align: left;">
<p
style="border-width: 0px; margin: 0px 0px 1em; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; clear: both; word-wrap: break-word;">When
I link Boost.Thread to my boost_test executable, it gives me</p>
<pre class="prettyprint"
style="border-width: 0px; margin: 0px 0px 10px; padding: 5px; overflow: auto; font-size: 12px; vertical-align: baseline; background-color: rgb(238, 238, 238); font-family: Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif; width: auto; max-height: 600px;"><code
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(238, 238, 238); font-family: Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;"><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">make</span><span
class="pun"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">[</span><span
class="lit"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: maroon;">2</span><span
class="pun"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">]:</span><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;"> </span><span
class="pun"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">***</span><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;"> </span><span
class="typ"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: rgb(43, 145, 175);">No</span><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;"> rule to make target </span><span
class="str"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: maroon;">`/usr/lib64/libboost_thread-mt.so', needed by `</span><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">gogo</span><span
class="pun"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">/</span><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">test</span><span
class="pun"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">/</span><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">test_boost</span><span
class="str"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: maroon;">'. Stop.
</span></code></pre>
<p
style="border-width: 0px; margin: 0px 0px 1em; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; clear: both; word-wrap: break-word;">when
I<span class="Apple-converted-space"> </span><code
style="border-width: 0px; margin: 0px; padding: 1px 5px; font-size: 12px; vertical-align: baseline; background-color: rgb(238, 238, 238); font-family: Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;">make</code><span
class="Apple-converted-space"> </span>it. Here's the offending CMake
code, what am I doing wrong?</p>
<pre class="prettyprint"
style="border-width: 0px; margin: 0px 0px 10px; padding: 5px; overflow: auto; font-size: 12px; vertical-align: baseline; background-color: rgb(238, 238, 238); font-family: Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif; width: auto; max-height: 600px;"><code
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(238, 238, 238); font-family: Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;"><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">add_executable</span><span
class="pun"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">(</span><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">boost_test boost_test</span><span
class="pun"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">.</span><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">cpp</span><span
class="pun"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">)</span><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">
add_test</span><span class="pun"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">(</span><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">boost_test boost_test</span><span
class="pun"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">)</span><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">
</span><span class="com"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: gray;"># Boost auto-links for MSVC, so we exclude it.</span><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">
</span><span class="kwd"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: rgb(0, 0, 139);">if</span><span
class="pun"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">(</span><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">CMAKE_COMPILER_IS_GNUCXX</span><span
class="pun"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">)</span><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">
target_link_libraries</span><span class="pun"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">(</span><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">test_boost </span><span
class="com"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: gray;">#LINK_INTERFACE_LIBRARIES</span><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">
$</span><span class="pun"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">{</span><span
class="typ"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: rgb(43, 145, 175);">Boost_THREAD_LIBRARY</span><span
class="pun"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">}</span><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">
</span><span class="pun"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">)</span><span
class="pln"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">
endif</span><span class="pun"
style="border-width: 0px; margin: 0px; padding: 0px; font-size: 12px; vertical-align: baseline; background-color: transparent; color: black;">()</span></code></pre>
</span></span>
<pre class="moz-signature" cols="72">--
Regards,
-Clark</pre>
</body>
</html>