cmake4eclipse icon indicating copy to clipboard operation
cmake4eclipse copied to clipboard

Cannot override Generator per project using CMAKE_GENERATOR variable

Open pitti98 opened this issue 2 years ago • 1 comments

In ticket #169 we read that the "Generator" option is now per workspace instead of per project.

If you still want to override this in the project settings, you can't. There is no option in the project settings. There is a cmake variable by which you could specify the generator (CMAKE_GENERATOR), buf if you try to set it as a CMake cache entry, it doesn't work because cmake complains that it is ignored, because "-G" is already given on the command line, and that takes precedence. The description string "Default build system" in the workspace settings suggests that this should be overridable somehow.

pitti98 avatar Sep 18 '23 12:09 pitti98

The generator option has been moved intentionally to the workbench settings since the installed build system is specific to the machine and thus specific to the workbench. The "Default build system" can be overwritten in a Build Tool Kit definition.

15knots avatar Sep 21 '23 19:09 15knots