-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
de.marw.cmake4eclipse.mbs.settings::buildDir is set to "" #196
Comments
Your .cproject has been created with cmake4eclipse prior to 4.x. |
Not really. Yes, the I am working on an existing code base, but the Eclipse projects have been re-created from scratch (as described above). I deleted all |
While setting In order to continue my actual work, I downgraded back to Eclipse 2023-09. |
It looks like the problem is also present here. I only needed to add another build configuration, set my CMake variables and restart Eclipse. Again I have an empty |
If it is now "/project/Debug" instead of "/project/_builds/Debug" then the plain old managed build kicked in. |
Describe the bug
Build does not start, caused by an invalid (empty) build directory (see 1st screenshot below).
It is not clear for me, whether a (Cmake4eclipse) build directory has to be specified explicitly,
as a useful build directory is chosen automatically by default (e.g. _build/Default). But after
setting CMake cache entries, an empty
buildDir
value is written to.cproject
(see below).After restarting the Eclipse IDE (the wrong
buildDir
setting does not take effect immediately),the project cannot be built anymore.
To Reproduce
Steps to reproduce the behavior:
3.1 Project name: test
3.2 Project type: Cmake4eclipse --> Empty Project
Expected behavior
Project can be build even after restarting the Eclipse IDE.
Screenshots
Error message after starting a build
Wrong build directory (configuration where a CMake cache variable has been set)
Empty build directory (configuration where a CMake cache variable has been set)
Correct build directory (configuration where NO CMake cache variable has been set)
Empty build directory (configuration where NO CMake cache variable has been set)
Useful Information
What is in Eclipse's Error Log?
Sanitized stack traces:
Additional context
.cproject snipset of the build configuration, where a CMake cache variable has been set
.cproject snipset of the build configuration, where NO CMake cache variable has been set
The text was updated successfully, but these errors were encountered: