Something like this:<br><br>if (MSVC)<br>        set(CMAKE_EXE_LINKER_FLAGS &quot;${CMAKE_EXE_LINKER_FLAGS} /FORCE:Multiply&quot;)<br>endif()<br><br>in your top level CMakeLists.txt should do the trick.  I think the /W0 flag will suppress any warnings.  This would need to be added to CMAKE_C_FLAGS and/or CMAKE_CPP_FLAGS in a similar manner.<br>
<br>--<br>Glenn<br><br><div class="gmail_quote">On 9 August 2011 17:46, Vinay Raj Hampapur <span dir="ltr">&lt;<a href="mailto:vinayraj.hampapur@gmail.com">vinayraj.hampapur@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>    I need to add to provide additional linker options to the program from within my CMakeLists.txt targeted at MSVC platform. In particular, I would like to add the /FORCE:Multiply option to the linker. How would I go about doing this?<br>

Also, how would I set the options to suppress any (all) warnings generated?<br><br>Thanks,<br><font color="#888888">Vinay<br>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>