<div dir="ltr">Hello<div><br></div><div>This was fixed at <a href="https://gitlab.kitware.com/cmake/cmake/merge_requests/1179">https://gitlab.kitware.com/cmake/cmake/merge_requests/1179</a></div><div>It will be released at cmake 3.9.2</div><div><br></div><div>Regards.</div><div>Masaru</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-08-20 11:22 GMT+09:00 Masaru Tsuchiyama <span dir="ltr"><<a href="mailto:m.tmatma@gmail.com" target="_blank">m.tmatma@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello<br>
<br>
This was a bug of cmake.<br>
<br>
cmake doesn't create 'rules.ninja' while the build process<br>
even though generated build.ninja has a line "include rules.ninja".<br>
<br>
I can reproduce it with the other project which uses cmake.<br>
<br>
Regards.<span class="HOEnZb"><font color="#888888"><br>
Masaru.</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
Masaru Tsuchiyama wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello<br>
<br>
I updated cmake to 3.9.1, then got the following error message on Win10.<br>
I don't get this error with cmake 3.7.1.<br>
<br>
Do you know what is wrong? a bug of cmake?<br>
<br>
 > "C:\Program Files\CMake\bin\cmake.exe" -G Ninja -D CMAKE_INSTALL_PREFIX=c:\clang -D CMAKE_BUILD_TYPE=Release ..<br>
-- The C compiler identification is MSVC 19.11.25506.0<br>
-- The CXX compiler identification is MSVC 19.11.25506.0<br>
-- The ASM compiler identification is MSVC<br>
-- Found assembler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools<wbr>/MSVC/14.11.25503/bin/HostX86/<wbr>x86/cl.exe<br>
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools<wbr>/MSVC/14.11.25503/bin/HostX86/<wbr>x86/cl.exe<br>
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools<wbr>/MSVC/14.11.25503/bin/HostX86/<wbr>x86/cl.exe -- broken<br>
CMake Error at C:/Program Files/CMake/share/cmake-3.9/Mo<wbr>dules/CMakeTestCCompiler.cmake<wbr>:51 (message):<br>
   The C compiler "C:/Program Files (x86)/Microsoft Visual<br>
<br>
Studio/2017/Community/VC/Tools<wbr>/MSVC/14.11.25503/bin/HostX86/<wbr>x86/cl.exe" is<br>
   not able to compile a simple test program.<br>
<br>
   It fails with the following output:<br>
<br>
    Change Dir: C:/svnwork/llvm2/build/CMakeFi<wbr>les/CMakeTmp<br>
<br>
<br>
This is a batch file to compile llvm.<br>
------------------------------<wbr>------------------------------<wbr>-<br>
set ROOTDIR=llvm2<br>
set DIR=%~dp0<br>
<br>
cd /d %DIR%<br>
<br>
if exist %ROOTDIR%     rmdir /s /q %ROOTDIR%<br>
if exist %ROOTDIR%     exit /b 1<br>
<br>
svn co    <a href="http://llvm.org/svn/llvm-project/llvm/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/llvm/trunk</a>        %ROOTDIR%<br>
svn co    <a href="http://llvm.org/svn/llvm-project/cfe/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/cfe/trunk</a> %ROOTDIR%\tools\clang<br>
svn co    <a href="http://llvm.org/svn/llvm-project/lld/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/lld/trunk</a> %ROOTDIR%\tools\lld<br>
svn co    <a href="http://llvm.org/svn/llvm-project/polly/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/polly/trunk</a> %ROOTDIR%\tools\polly<br>
svn co    <a href="http://llvm.org/svn/llvm-project/compiler-rt/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/compiler-rt/trunk</a> %ROOTDIR%\projects\compiler-rt<br>
svn co    <a href="http://llvm.org/svn/llvm-project/libcxx/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/libcxx/trunk</a> %ROOTDIR%\projects\libcxx<br>
svn co    <a href="http://llvm.org/svn/llvm-project/libcxxabi/trunk" rel="noreferrer" target="_blank">http://llvm.org/svn/llvm-proje<wbr>ct/libcxxabi/trunk</a> %ROOTDIR%\projects\libcxxabi<br>
<br>
cd %ROOTDIR% || exit /b 1<br>
<br>
if exist build     rmdir /s /q build<br>
if exist build     exit /b 1<br>
if not exist build mkdir build<br>
cd build<br>
<br>
del /Q LLVM-*.exe<br>
<br>
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxil<wbr>iary\Build\vcvarsall.bat" x86<br>
"C:\Program Files\CMake\bin\cmake.exe" -G Ninja -D CMAKE_INSTALL_PREFIX=c:\clang -D CMAKE_BUILD_TYPE=Release ..<br>
ninja -v package<br>
------------------------------<wbr>------------------------------<wbr>------------------------- <br>
<br>
</blockquote>
<br>
<br>
-- <br>
Masaru Tsuchiyama <<a href="mailto:m.tmatma@gmail.com" target="_blank">m.tmatma@gmail.com</a>><br>
</div></div></blockquote></div><br></div>