[CMake] How to support separate debug and release build directories?

David Aldrich david.aldrich.ntml at gmail.com
Fri Jun 21 12:09:49 EDT 2019


>
> > What would best practice be to provide convenient commands for our
> > developers to easily build the target ?
>
> For the Makefile generator, best practice is to use separate build
> directories (i.e., places where you run cmake) for different
> configurations (i.e., different settings recorded during the
> configuration step).
>
> If you want to provide developers with some known set(s) of
> configuration settings, I suggest wrapper scripts that invoke cmake
> with those settings.
>
> Thanks for your advice. I am not finding it easy to find 'patterns' for
these sort of issues. I would have thought that configuring a project with
separate debug and release directories would be quite typical. But it's
hard to find the recommended way of doing such things. Anyway, I think I am
on the right track now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190621/c4753921/attachment.html>


More information about the CMake mailing list