<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>