Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » How do I disable CMake in a project?
How do I disable CMake in a project? [message #1819528] Thu, 16 January 2020 19:46 Go to next message
Jay Elston is currently offline Jay ElstonFriend
Messages: 1
Registered: January 2020
Junior Member
I am getting CMake errors in a small project I created recently. I have a working Makefile, and I do not need CMake to manage it.

I would like to switch CMake off. I cannot figure out where this live in the Project's property settings. I do see that there is a CMake section -- which consists of a single button ("Launch CMake GUI..."). However nothing happens when I click it :-(

Here are the error messages I am getting:

When I build, the project compiles and links correctly, and I can see the commands as they are executing in the Console tab.

But after the build complete, the Console is cleared, and I get this:

Building in: C:\Users\jay.elston\eclipse-workspace\SniffArcnet\build\cmake.debug.win32.x86_64
cmake --build . -- -v
[0/1] /usr/bin/cmake.exe -SC:/Users/jay.elston/eclipse-workspace/SniffArcnet -B/cygdrive/c/Users/jay.elston/eclipse-workspace/SniffArcnet/build/cmake.debug.win32.x86_64
CMake Error: The source directory "C:/Users/jay.elston/eclipse-workspace/SniffArcnet" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
FAILED: build.ninja 
/usr/bin/cmake.exe -SC:/Users/jay.elston/eclipse-workspace/SniffArcnet -B/cygdrive/c/Users/jay.elston/eclipse-workspace/SniffArcnet/build/cmake.debug.win32.x86_64
ninja: error: rebuilding 'build.ninja': subcommand failed
Build complete (0 errors, 0 warnings): C:\Users\jay.elston\eclipse-workspace\SniffArcnet\build\cmake.debug.win32.x86_64


I can also clean the project, but I get this error after I clean:

ninja clean
[0/1] Re-running CMake...
CMake Error: The source directory "C:/Users/jay.elston/eclipse-workspace/SniffArcnet" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
FAILED: build.ninja ninja: error: rebuilding 'build.ninja': subcommand failed



Eclipse version:

Eclipse IDE for C/C++ Developers
Version: 2019-09 R (4.13.0)
Build id: 20190917-1200
OS: Windows 7, v.6.1, x86_64 / win32
Java version: 1.8.0_152

Re: How do I disable CMake in a project? [message #1819597 is a reply to message #1819528] Fri, 17 January 2020 18:26 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
You can try removing the CMake nature found at
Project --> Project Natures
If that doesn't work, delete the project then import it with
File --> Import --> Existing Code as a Makefile Project
Re: How do I disable CMake in a project? [message #1836649 is a reply to message #1819597] Mon, 11 January 2021 09:38 Go to previous message
bms lian is currently offline bms lianFriend
Messages: 1
Registered: January 2021
Junior Member
David Vavra wrote on Fri, 17 January 2020 18:26
You can try removing the CMake nature found at
Project --> Project Natures
If that doesn't work, delete the project then import it with
File --> Import --> Existing Code as a Makefile Project



Thanks to help
I solved this problem !! by this method
Previous Topic:Libraries are missing but they aren't?
Next Topic:How to profile xrdp?
Goto Forum:
  


Current Time: Sat Oct 12 15:38:32 GMT 2024

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

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

Back to the top