Source files not being parsed in imported cmake project [message #1848950] |
Sun, 26 December 2021 15:10  |
Eclipse User |
|
|
|
I have imported a cmake project into Eclipse. I created a builder that builds all the targets in the cmake. This works, but I have to use the Project->Build All from the toolbar to get it to build. The build button in the toolbar does nothing.
Then when I run or debug, Eclipse runs the last built executable instead of rebuilding. I see a section in the C++ Application configuration called Build (if required) before launching, but I do not see how I can tell it to run the build configuration that is working. I can click Build Configuration and see that the builder is listed, so why isn't it run?
Then Eclipse autocomplete is bare bones, no imports, no members or functions, just C++ keywords. So the static analysis is completely missing from all the source files. This leads me to believe that I need to tell Eclipse where the source files are, but I can not figure out how to do that.
How do I get this working?
|
|
|
|
|
Re: Source files not being parsed in imported cmake project [message #1848953 is a reply to message #1848952] |
Sun, 26 December 2021 15:36  |
Eclipse User |
|
|
|
Okay, I got it working. I now have access to C++ Build since importing as a Makefile project, and set the build directory to the build folder where cmake generated the makefiles. and then created a run configuration that points to the desired executable. Now the build button works and it builds before running.
|
|
|
Powered by
FUDForum. Page generated in 0.03415 seconds