On Mon, Nov 24, 2008 at 2:41 PM, Michael Jackson <span dir="ltr">&lt;<a href="mailto:mike.jackson@bluequartz.net">mike.jackson@bluequartz.net</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

typically you do:<br>
<br>
add_executable(main &nbsp;main.cpp)<br>
target_link_libraries(main a)<br>
<br>
and CMake _usually_ picks the correct library for the given platform (a.lib, a.so, a.dylib... )<br>
<br>
Is that what you were asking?</blockquote></div><br>Yes, you did answer my question exactly, however I did not specify the more complex issue.<br>
<br>
Some libraries we&#39;re using have different library names depending on the platform. For example:<br>
<br>
a_windows.lib<br>
a_linux.o<br>
<br>
This is why I believed I would need the conditional logic. What would you do in this case? Thanks for your help.<br>
<br>