Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » CMake project uses default (Ninja) project generator causing build failure
CMake project uses default (Ninja) project generator causing build failure [message #1815861] Sun, 13 October 2019 14:33
Eclipse UserFriend
I'm trying to build new CMake hello world project and I'm getting:
Building in: /home/adam/eclipse-workspace/tttt/build/default
Configuring in: /home/adam/eclipse-workspace/tttt/build/default
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXPORT_COMPILE_COMMANDS=ON /home/adam/eclipse-workspace/tttt
-- Configuring incomplete, errors occurred!
See also "/home/adam/eclipse-workspace/tttt/build/default/CMakeFiles/CMakeOutput.log".
CMake Error: CMake was unable to find a build program corresponding to "Ninja".  CMAKE_MAKE_PROGRAM is not set.  You probably need to select a different build tool.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
cmake --build . -- -v
No such file or directory
CMake Error: Generator: execution of make failed. Make command was: "" "-v"
Build complete (0 errors, 0 warnings): /home/adam/eclipse-workspace/tttt/build/default


Where could I change default generator to desired 'Unix Makefiles' and more generally how to add any custom optional parameter to cmake?
Previous Topic:'Running MyStuff.elf' has encountered a problem. Error starting process.
Next Topic:Using CDT parser seperate from Eclipse
Goto Forum:
  


Current Time: Tue Jun 17 19:16:51 EDT 2025

Powered by FUDForum. Page generated in 0.03867 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top