Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Improving CDT project generated by CMake
Improving CDT project generated by CMake [message #1804438] Tue, 26 March 2019 07:36 Go to next message
D. Fleury is currently offline D. FleuryFriend
Messages: 2
Registered: March 2019
Junior Member
Hi,
since Eclipse CDT 9.2 if I remember well, the .cproject generate by CMake was not well formed to be recognize as a valid C++ project.

I have tried to improve the .cproject generated by CMake here (gitlab.kitware.com/dfleury2/cmake).
You can enable it using the new CDT9 generator.
It is just an experimentation since it will not be integrated to CMake, but it will be great if someone else can use it and give some feed back.
Later, I will probably improve the CDT4 generator to be supported by CDT.

By the way, CMake has change their politics for generator and want to deprecated them in favor of the new file-api.
Is there some information about supporting the new file api into CDT ?

Regards,
Re: Improving CDT project generated by CMake [message #1804485 is a reply to message #1804438] Tue, 26 March 2019 18:30 Go to previous messageGo to next message
Doug Schaefer is currently offline Doug SchaeferFriend
Messages: 135
Registered: July 2009
Senior Member
The policy I've been driving for years now is for the CDT to invoke CMake itself with either the Makefile or Ninja generators and then call the cmake --build.

CDT's managed build system is unmaintained at the moment so having anything depend on it is worrisome. The new CDT core build system is designed to call external build systems like CMake and Meson, etc. Not the other way around.
Re: Improving CDT project generated by CMake [message #1804495 is a reply to message #1804485] Wed, 27 March 2019 06:44 Go to previous messageGo to next message
D. Fleury is currently offline D. FleuryFriend
Messages: 2
Registered: March 2019
Junior Member
The issue I try to solve is the provider for C++ project not available not launching the external build system which work fine.
Eclipse does not recognize the imported project as a C++ project, so the options for C++ are not available.
Is the new CDT core build system solve this issue ?


Re: Improving CDT project generated by CMake [message #1804553 is a reply to message #1804495] Thu, 28 March 2019 16:51 Go to previous messageGo to next message
Benjamin Shadwick is currently offline Benjamin ShadwickFriend
Messages: 7
Registered: February 2014
Junior Member
CMake developers are pushing to deprecate the IDE-specific generators in CMake and get the IDEs to use something called "file-api": https://gitlab.kitware.com/cmake/cmake/issues/19090

Is work underway on Eclipse CDT to support CMake's "file-api"?

Edit: Opened an Eclipse CDT bug to start a dialogue on this: https://bugs.eclipse.org/bugs/show_bug.cgi?id=545905

[Updated on: Thu, 28 March 2019 19:30]

Report message to a moderator

Re: Improving CDT project generated by CMake [message #1835582 is a reply to message #1804438] Mon, 07 December 2020 15:14 Go to previous messageGo to next message
Robin Mueller is currently offline Robin MuellerFriend
Messages: 6
Registered: April 2020
Junior Member
I am interested in this as well. Is work underway to use the file-api? We would like to switch from hand-written Makefiles to CMake, but the Eclipse CDT4 makefile generator doesn't really generate what I require..

Kind Regards
Robin

[Updated on: Mon, 07 December 2020 15:14]

Report message to a moderator

Re: Improving CDT project generated by CMake [message #1835627 is a reply to message #1835582] Wed, 09 December 2020 03:09 Go to previous message
Benjamin Shadwick is currently offline Benjamin ShadwickFriend
Messages: 7
Registered: February 2014
Junior Member
In trying to engage with Eclipse and CMake developers, I got the impression that they're more interested in pointing fingers at each other than trying to improve things.

Fortunately I've managed to ditch Eclipse both at work and at home in favor of Visual Studio Code on Linux and Windows, and am much happier with the CMake integration provided by a VSCode plugin that is now maintained by Microsoft themselves.
Previous Topic:Editor does not recognize CPP syntax after adding c++ nature
Next Topic:What's the most recommended c++ IDE to use?
Goto Forum:
  


Current Time: Sun Oct 06 23:03:35 GMT 2024

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

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

Back to the top