Skip to content

CMake variants, Cartesian but only for certain builds #2869

Closed Answered by bobbrow
savvn001 asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, there is not a way to set up rules for custom combinations when using variants. If you'd like to have more control over this. you'd have to switch to using CMakePresets.json. Though CMake presets don't let you specify rules either, you can define presets that consist of a combination of other partial presets such that you could get what you want.

It's on our backlog to come up with a proposal to Kitware that will allow for easier combinatorics with CMake presets. (e.g. address this: https://gitlab.kitware.com/cmake/cmake/-/issues/22538)

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by savvn001
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants