Repository navigation
Select a build target when using CMakePresets.json #4437
Unanswered
Eddie Chang (kapoisu)
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I used to select the build target from a list of targets after configuring the project when using cmake kits. When I moved from kits to presets, I noticed that a text prompt is shown when the "targets" field is not specified within the build preset. If there are too many available targets, adding them to all presets becomes a tedious task. Is there any ways to get the similar experience as using cmake kits before?
Edit: I've done more tests and finally found that this issue is unrelated to kits/presets. It occurs when the actual CMAKE_BUILD_TYPE doesn't match the build type you select before configuring the project. For example:
Besides, using non-standard build types is allowed. (Only for presets because afaik I cannot set the type to a custom type with kits).
All reactions