Skip to content

How to set default cmake build system #1333

Answered by maxnbk
anderslanglands asked this question in Q&A
Discussion options

You must be logged in to vote

This probably seems counterintuitive, but try:
plugins = {'build_system': {'cmake': {'build_system': 'ninja'}}}

If I'm not wrong:
rez has a default build system (cmake), but cmake has a default build system (nmake in this case). I assume what you want is to change cmake's default build_system, not rez default build_system, unless ninja's scope has expanded drastically since I last checked.

Keep in mind that this correlates to the difference between rez-build's -b flag, and --bt + --bs flags. You'll see that when cmake is your default build system, the --bt + --bs flags are cmake-specific flags.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@anderslanglands
Comment options

Answer selected by JeanChristopheMorinPerso
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