cmake error with cmake 3.9.1

Hello

I updated cmake to 3.9.1, then got the following error message on Win10.
I don't get this error with cmake 3.7.1.

Do you know what is wrong? a bug of cmake?

> "C:\Program Files\CMake\bin\cmake.exe" -G Ninja -D CMAKE_INSTALL_PREFIX=c:\clang -D CMAKE_BUILD_TYPE=Release ..
-- The C compiler identification is MSVC 19.11.25506.0
-- The CXX compiler identification is MSVC 19.11.25506.0
-- The ASM compiler identification is MSVC
-- Found assembler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/HostX86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/HostX86/x86/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/HostX86/x86/cl.exe -- broken
CMake Error at C:/Program Files/CMake/share/cmake-3.9/Modules/CMakeTestCCompiler.cmake:51 (message):
   The C compiler "C:/Program Files (x86)/Microsoft Visual
Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/HostX86/x86/cl.exe" is
   not able to compile a simple test program.

   It fails with the following output:

    Change Dir: C:/svnwork/llvm2/build/CMakeFiles/CMakeTmp

This is a batch file to compile llvm.

Hello

This was a bug of cmake.

cmake doesn't create 'rules.ninja' while the build process
even though generated build.ninja has a line "include rules.ninja".

I can reproduce it with the other project which uses cmake.

Regards.
Masaru.

Masaru Tsuchiyama wrote:

Hello

This was fixed at https://gitlab.kitware.com/cmake/cmake/merge_requests/1179
It will be released at cmake 3.9.2

Regards.
Masaru