Ninja: Missing build.ninja file on Windows
Running cmake-3.13.0-rc1-win64 with the attached CMakeLists.txt file and the command line
cmake -G "Ninja" -B build .
seems to be successful at first. At least, CMake does not fail with an error and claims to have written all build files. However, the resulting build directory lacks the build.ninja
file.
cmake_minimum_required(VERSION 3.12)
include_directories( )
file(TOUCH "${CMAKE_CURRENT_BINARY_DIR}/empty.c")
add_executable(main
"${CMAKE_CURRENT_BINARY_DIR}/empty.c"
)
Note, that the argument to include_directories()
is a no-break space character.