<div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> I would also like this to work if I use the make targets e.g. make<br>
> debug.<br>
<br>
I think that's outside the scope of the Makefile generator. For that<br>
generator, CMAKE_BUILD_TYPE is a configuration-wide setting. If you<br>
want a different configuration, you need a different build directory<br>
(where "build directory" is wherever you run cmake).<br></blockquote><div><br></div><div>If I don't use make targets (so that user can type 'make debug' etc) the build command would be more cumbersome:</div><div><br></div><div>cmake3 --build -D CMAKE_BUILD_TYPE=Debug .</div><div><br></div><div>What would best practice be to provide convenient commands for our developers to easily build the target ?</div></div></div>