On Wed, Feb 27, 2008 at 4:51 PM, Robert Fleming <<a href="mailto:robert.fleming.multigen@gmail.com">robert.fleming.multigen@gmail.com</a>> 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 "/NODEFAULTLIB:msvcrt")<br>
<br>
Not sure if this is the best way. You'll want to wrap it with some<br>
conditional statements checking you'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> SET_TARGET_PROPERTIES(foo PROPERTIES LINK_FLAGS "/NODEFAULTLIB:foo.lib /NODEFAULTLIB:bar.lib")<br>
# etc.<br>ENDIF(MSVC)<br><br><br></div></div>-- <br>Philip Lowman