I downloaded ninja, put the *.exe into the search path, and re-run the build script. It seems the C compiler isn't correctly identified. Is MSVC 18 somewhere hard wired?
c:\projects\caffe>scripts\build_win.cmd
The system cannot find the drive specified.
INFO: ============================================================
INFO: Summary:
INFO: ============================================================
INFO: MSVC_VERSION = 12
INFO: WITH_NINJA = 1
INFO: CMAKE_GENERATOR = "Ninja"
INFO: CPU_ONLY = 1
INFO: CMAKE_CONFIG = Release
INFO: CMAKE_BUILD_SHARED_LIBS = 1
INFO: BUILD_PYTHON = 1
INFO: BUILD_PYTHON_LAYER = 1
INFO: BUILD_MATLAB = 0
INFO: PYTHON_EXE = "python"
INFO: RUN_TESTS = 0
INFO: RUN_LINT = 0
INFO: RUN_INSTALL = 0
INFO: ============================================================
INFO: Downloading dependencies
Downloading dependencies (libraries_v120_x64_py27_1.0.1.tar.bz2). Please wait...
...100%, 142 MB, 381 KB/s, 381 seconds passed
Done.
Extracting dependencies. Please wait...
Done.
loading initial cache file c:\projects\caffe\build\libraries\caffe-builder-confi
g.cmake
-- The C compiler identification is unknown
-- The CXX compiler identification is MSVC 18.0.40629.0
cc: file '/etc/compiler.ccg': The system cannot find the path specified.
-- Check for working C compiler using: Ninja
-- Check for working C compiler using: Ninja -- broken
CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.3/Modules/CMakeTestCCo
mpiler.cmake:61 (message):
The C compiler "C:/mks_bin/CC.EXE" is not able to compile a simple test
program.
It fails with the following output:
Change Dir: C:/projects/caffe/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/mks_bin/ninja.exe" "cmTC_7f87e"
[1/2] Building C object CMakeFiles\cmTC_7f87e.dir\testCCompiler.c.obj
FAILED: CMakeFiles/cmTC_7f87e.dir/testCCompiler.c.obj
C:\mks_bin\CC.EXE -o CMakeFiles\cmTC_7f87e.dir\testCCompiler.c.obj -c
testCCompiler.c
cc: file '/etc/compiler.ccg': The system cannot find the path specified.
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:18 (project)
-- Configuring incomplete, errors occurred!
See also "C:/projects/caffe/build/CMakeFiles/CMakeOutput.log".
See also "C:/projects/caffe/build/CMakeFiles/CMakeError.log".
ERROR: Configure failed
c:\projects\caffe>