I think you just change the appropriate flag in CMAKE_CXX_FLAGS_&lt;Config_Type&gt; variable to control this. By Default It uses the Dll runtime via the MD/MDd flags.<div><br></div><div>See this table for the other variations of this flag.</div>
<div><br></div><div><a href="http://msdn.microsoft.com/en-us/library/abx4dbyh(VS.71).aspx">http://msdn.microsoft.com/en-us/library/abx4dbyh(VS.71).aspx</a><br><br><div class="gmail_quote">On Fri, Jan 15, 2010 at 1:10 PM, Jochen Wilhelmy <span dir="ltr">&lt;<a href="mailto:j.wilhelmy@arcor.de">j.wilhelmy@arcor.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi!<br>
<br>
is there a solution for creating visual studio project files with static runtime?<br>
(i.e. RuntimeLibrary = 0 instead of 2 etc.)<br>
<br>
all four values are:<br>
MultiThreaded = 0<br>
MultiThreadedDLL = 2<br>
MultiThreadedDebug = 1<br>
MultiThreadedDebugDLL = 3<br>
<br>
I need 0 and 1 instead of 2 and 3.<br>
<br>
perhaps this could be new generators e.g. &quot;Visual Studio 9 2008 static&quot;<br>
just like &quot;Visual Studio 9 2008 Win64&quot;<br>
<br>
An even better solution would be generator options.<br>
the generator then only is &quot;Visual Studio&quot; and options are<br>
the version number, 32/64 bit, dll/static etc.<br>
<br>
-Jochen<br>
<br>
<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></div>