[CMake] Is there any way to set a build-type specific install path for multiconfig tools?

J Decker d3ck0r at gmail.com
Mon Jul 13 18:17:53 EDT 2015


On Mon, Jul 13, 2015 at 10:45 AM, David Cole via CMake <cmake at cmake.org>
wrote:

> A few more ideas:
>
>
> The other "no need to modify CMake" way to achieve this (although it
> may be considered "too ugly" or non-ideal by some) would be to force
> the use of a single configuration per build tree, and use the proper
> value for CMAKE_INSTALL_PREFIX in each build tree.
>
> Your developers may not like that, but it would sure make the problem
> at hand disappear.
>
>
This is/was my preferred way to do this.  And yes, other developers had
problems grasping the issue.  And resulted in many mixed-mode builds.

And actually going this way removed complication of installing
'bin/release' and 'bin/debug' sort of destinations.

The idea of making an install that installs from a install won't work; the
inbetween could still be corrupted from partial release/debug mode builds.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150713/a3ac3931/attachment.html>


More information about the CMake mailing list