

Then it might because -D CMAKE_MAKE_PROGRAM and -G Ninja are specified at the same time but CMAKE_MAKE_PROGRAM with invalid value (such as empty). You probably need to select a different build tool. You may still suffer CMake Error: CMake was unable to find a build program corresponding to "Ninja". So presumably it's either a CMake bug which was fixed later, or the Ninja project changed the name of the binary at some point. in this instance I'm using a very old version of CMake, version 2.8.12. I use CMake with Ninja extensively at work and at home, on Windows and Linux.

It was looking for "ninja-build", not "ninja"! | grep -i ninjaĪccess("ninja-build", R_OK) = -1 ENOENT (No such file or directory)Īccess("/usr/local/sbin/ninja-build", R_OK) = -1 ENOENT (No such file or directory)Īccess("/usr/local/bin/ninja-build", R_OK) = -1 ENOENT (No such file or directory)Īccess("/sbin/ninja-build", R_OK) = -1 ENOENT (No such file or directory)Īccess("/bin/ninja-build", R_OK) = -1 ENOENT (No such file or directory)Īccess("/usr/sbin/ninja-build", R_OK) = -1 ENOENT (No such file or directory)Īccess("/usr/bin/ninja-build", R_OK) = -1 ENOENT (No such file or directory)Īccess("/opt/texlive/2016/bin/i386-linux/ninja-build", R_OK) = -1 ENOENT (No such file or directory)Īccess("/root/bin/ninja-build", R_OK) = -1 ENOENT (No such file or directory) I was stumped until I ran an strace on the generator command. I had already dropped my fresh "ninja" binary into /usr/bin and checked it had 0755 permissions. This only works on very old versions of CMake, which I will explain below. # ln -s /usr/bin/ninja /usr/bin/ninja-build My solution: symlink "ninja-build" to "ninja". build_libs.sh file that came with the GitHub code to build this. Configuring incomplete, errors occurred! You probably need to select a different build tool.ĬMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.ĬMake Error: Could not find cmake module file:/golang/project/src//devsisters/goquic/libquic/build/debug/CMakeFiles/2.8.11/CMakeCCompiler.cmakeĬMake Error: Could not find cmake module file:/golang/project/src//devsisters/goquic/libquic/build/debug/CMakeFiles/2.8.11/CMakeCXXCompiler.cmake I'm trying to build some code I got from GitHub using CMake, but keep getting the followings errors: CMake Error: CMake was unable to find a build program corresponding to "Ninja".
