Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Docker support for C/C++ cmake based project
Docker support for C/C++ cmake based project [message #1834338] Sat, 07 November 2020 23:55 Go to next message
zhalat zhalat is currently offline zhalat zhalatFriend
Messages: 1
Registered: November 2020
Junior Member
Hello,
Is there a way to build project based on cmake in docker?

C/C++ projects created in eclipse are able to be compiled in container rather than 'native' environment.


But what about C/C++ projects based on cmake? There is no option like C/C++ Build->Settings, and Build inside Docker Image button can not be toggled.
I generate eclipse project from cmake like that:
cmake .. - G"Eclipse CDT4 - Unix Makefile ..."
and then Import.
The same problem exists when Cmake Project is choosed form eclipse

Is there a way to force eclipse to use specifed docker image?
  • Attachment: 1.png
    (Size: 57.72KB, Downloaded 68 times)
Re: Docker support for C/C++ cmake based project [message #1834346 is a reply to message #1834338] Sun, 08 November 2020 12:17 Go to previous message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
C/C++ Build->Settings are only used when Eclipse is generating a makefile.
CMake is doing that instead.
Eclipse will run CMake when you build and doesn't really have any control over it.
The same is true when running any build system other than Make or if you are using your own makefile(s).

If you want to use CMake you need to know how to use it.
Start here: https://cmake.org/cmake/help/latest/guide/tutorial/index.html

If you don't want to be bothered with learning CMake then use a Managed Build Project.
Eclipse will then generate Makefiles for use with Make.
But even this only partially hides the build workings.
Regardless of the build system chosen, you should attempt to learn how to use it.
Eclipse provides ways to set build options when using Make but still expects you know what you're doing.




[Updated on: Sun, 08 November 2020 12:28]

Report message to a moderator

Previous Topic:Signal Functions Like in KEIL
Next Topic:Build problem - missing #include file
Goto Forum:
  


Current Time: Thu Oct 10 01:43:37 GMT 2024

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

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

Back to the top