Please skip this, the trunk version has fixed this problem.<br><br><div class="gmail_quote">在 2012年3月1日 下午3:22,hume npx <span dir="ltr"><<a href="mailto:humeafo@gmail.com">humeafo@gmail.com</a>></span>写道:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>CMAKE_CONFIGURATION_TYPES is empty list when using nmake etc batch generators, To enable choose MSVC CRT under batch build using nmake etc,we need the following patch:</div><div><br></div><div>---------------------------------------------------------------------------------------------------------------------------------------</div>

<div><br></div><div><br></div><div>diff -Nur cmake_orig/modules/ChooseMSVCCRT.cmake cmake/modules/ChooseMSVCCRT.cmake</div><div>--- cmake_orig/modules/ChooseMSVCCRT.cmake      2011-02-03 19:41:27 +0800</div><div>+++ cmake/modules/ChooseMSVCCRT.cmake   2012-03-01 15:15:03 +0800</div>

<div>@@ -59,6 +59,10 @@</div><div>   endif()</div><div><br></div><div>   make_crt_regex(MSVC_CRT_REGEX ${MSVC_CRT})</div><div>+</div><div>+  if(NOT CMAKE_CONFIGURATION_TYPES)</div><div>+    set(CMAKE_CONFIGURATION_TYPES ${CMAKE_BUILD_TYPE})</div>

<div>+  endif()</div><div><br></div><div>   foreach(build_type ${CMAKE_CONFIGURATION_TYPES})</div><div>     string(TOUPPER "${build_type}" build)</div>
</blockquote></div><br>