<div class="gmail_quote">On Mon, Dec 12, 2011 at 2:10 PM, David Cole <span dir="ltr"><<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Apparently, they are undocumented, but there are also:<br>
<br>
CMAKE_SHARED_LINKER_FLAGS and CMAKE_MODULE_LINKER_FLAGS (and their<br>
per-config variants) for SHARED and MODULE library targets as well.<br>
<br>
Use CMAKE_SHARED_LINKER_FLAGS instead.</blockquote><div><br></div><div>Thanks for the information guys. I'm having a minor problem with these variables though.</div><div><br></div><div>Here is how I use it:</div><div>
<br></div><div>set( CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} /NODEFAULTLIB:\"${lib}\" )</div><div><br></div><div>Prior to calling the set above, the shared linker flags look like this:</div><br> /STACK:10000000 /machine:X86<br>
<br>After calling the set above, it looks like this:<br><br> /STACK:10000000 /machine:X86 ;/NODEFAULTLIB:"LIBC"</div><div class="gmail_quote"><br></div><div class="gmail_quote">For some reason a semi-colon is being inserted prior to the /NODEFAULTLIB part. I don't know why this is happening but visual studio is complaining about it. Any reason why this is happening? Thanks.</div>