On Wed, Feb 27, 2008 at 4:51 PM, Robert Fleming &lt;<a href="mailto:robert.fleming.multigen@gmail.com">robert.fleming.multigen@gmail.com</a>&gt; 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;">
To solve the first problem I did:<br>
<br>
set_target_properties(rtf PROPERTIES LINK_FLAGS &quot;/NODEFAULTLIB:msvcrt&quot;)<br>
<br>
Not sure if this is the best way. &nbsp;You&#39;ll want to wrap it with some<br>
conditional statements checking you&#39;re on windows, probably.<br>
<br>
Also, if you just want to ignore a library in debug, you can do<br>
LINK_FLAGS_DEBUG I believe.</blockquote><div><br>For better portability (i.e. to MinGW) you probably want something like this:<br><br>IF(MSVC)<br>&nbsp;&nbsp; SET_TARGET_PROPERTIES(foo PROPERTIES LINK_FLAGS &quot;/NODEFAULTLIB:foo.lib /NODEFAULTLIB:bar.lib&quot;)<br>
&nbsp;&nbsp; # etc.<br>ENDIF(MSVC)<br><br><br></div></div>-- <br>Philip Lowman