Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Whats the state of CMake Build Support ?(Whats does work and what should work.)
Whats the state of CMake Build Support ? [message #1764479] Tue, 30 May 2017 12:32 Go to next message
Norbert Lange is currently offline Norbert LangeFriend
Messages: 2
Registered: May 2017
Junior Member
Hello,

since there is a clear lack of any information or documentation about the plugin, the only thing visible is a button to start the CMake GUI. Is this really everything it does now?

I would like to know how the following should work:

- "Seeding" configuration by storing the cmake Variables in a project. This will allow deleting the output folder, and simply starting a new build instead of configuring cmake outside of eclipse. (Like every other builder works)
- Fetching include paths and macros from the toolchain. Its not possible to enable a "Built-in Compiler settings provider", since the entire C/C++ General tree is removed from the properties
- Fetching include paths and macros from the buildsystem (what is defined per file in CMakeLists.txt)

Especially since their apparently arent any providers, the current state of the plugin is actually inferior to using a plain Makefile Project with fitting providers and running CMake yourself.
Re: Whats the state of CMake Build Support ? [message #1764495 is a reply to message #1764479] Tue, 30 May 2017 13:47 Go to previous messageGo to next message
Jonah Graham is currently offline Jonah GrahamFriend
Messages: 400
Registered: June 2014
Senior Member
Hi Norbert,

Quote:
Is this really everything it does now?


Could be, the CMake support is work in progress. This has been ongoing for a while. There has been discussion just this week on the topic: https://dev.eclipse.org/mhonarc/lists/cdt-dev/msg32065.html

HTH
Jonah
Re: Whats the state of CMake Build Support ? [message #1764886 is a reply to message #1764479] Fri, 02 June 2017 21:11 Go to previous messageGo to next message
Roman Popov is currently offline Roman PopovFriend
Messages: 1
Registered: June 2017
Junior Member
But how to enable CMake support in Eclipse?

I've installed Eclipse Oxygen RC but I don't see any options how to import CMake project. Neither I've found any CMake plugins in "Help->Install new software"
Re: Whats the state of CMake Build Support ? [message #1765018 is a reply to message #1764886] Mon, 05 June 2017 17:40 Go to previous messageGo to next message
Jonah Graham is currently offline Jonah GrahamFriend
Messages: 400
Registered: June 2014
Senior Member
As CMake is experimental, it is not currently published to the main Eclipse Oxygen release. You can install it from http://download.eclipse.org/tools/cdt/builds/oxygen/milestones/rc2/ (that URL will change as the new release candidates are produced and eventually Oxygen is released). Check back at https://www.eclipse.org/cdt/downloads.php for release version later in June.

Once you install, do New -> C/C++ Project -> CMake and have a go.
Re: Whats the state of CMake Build Support ? [message #1780741 is a reply to message #1764479] Fri, 26 January 2018 13:46 Go to previous message
Stefan Bellus is currently offline Stefan BellusFriend
Messages: 1
Registered: January 2018
Junior Member
Hi

I know that CMake support is experimental (CDT 9.3).
I try it, but may be I do something wrong because basic usage scenarios do not work.

I have project with CMakeLists.txt. I create C/C++ project -> Empty or Existing CMake project.
Some project is generated.

The problems:
- There is no configuration (Debug/Release/Default)
- There is CMake section in project properties but there is only one button Launch CMake Gui.
- In cmake-gui I choose build directory and setup project. BUT build does not work. (I guess eclipse has no chance to figure out where build folder is and what is native bool tool when I set it through cmake-gui)
- No Targets are populated from CMakeLists.txt
- Subdirectories mentioned in CMakeLists.txt are ignored.

What is correct workflow?
Is there any tutorial how to use this eclipse feature?

Best regards
Stevo
Previous Topic:setting a user gcc
Next Topic:How can I do a persistent modification to an AbstractBuildCommandParser-instance?
Goto Forum:
  


Current Time: Wed May 23 22:59:47 GMT 2018

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

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

Back to the top