Skip to content
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

Other CMake argument field does not expand Eclipse variables #207

Open
mykhayloscherbak opened this issue Dec 4, 2024 · 0 comments
Open

Comments

@mykhayloscherbak
Copy link

I'm adding an additional argument to cmake using the "Other CMake arguments" field using Eclipse variables:
-G "Unix Makefiles" -DPROJECT=${ProjName}
and ${ProjName} is not expanded and passed to CMake as is:

cmake -DCMAKE_BUILD_TYPE:STRING=Debug -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_RULE_MESSAGES:BOOL=OFF -G Ninja -G "Unix Makefiles" -DPROJECT=${ProjName} -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON /home/user/eclipse-workspace/template

The Build output field of the same form expand variables well.

  • cmake4eclipse version: 5.0.0
  • CDT version: 11.6
  • Which OS do you use: Kubuntu 24.04 LTS
  • Cmake version: 3.28.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant