Feature Request: CMAKE_INSTALL_PREFIX_<CONFIG>
A per https://gitlab.kitware.com/ben.boeckel
Regarding the bit of a rat's nest issue: #17212 (comment 308671)
And heading advice on breaking above out into at least three separate issues of which this is one.
- Provide
CMAKE_INSTALL_PREFIX_<CONFIG>
Debug/Release to allow re-vectoring of entire tree in VS when switching Debug/Release in VS.
Gathered here are the reasons related to this feature request.
Debug EXE generation:
For exe's if you want separate debug and release to be generated one has to:
set_target_properties(someexe PROPERTIES DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
But what if you want the 3rd Party project you just downloaded to generate it so as to attach a debugger?
You can do it for libs but not exe's as CMAKE_<CONFIG>_POSTFIX
setting has no effect on exe's except the build system will happily overwrite the release version.
CMAKE_INSTALL_PREFIX_<CONFIG>
on windows builds:
If there was an CMAKE_INSTALL_PREFIX_<CONFIG>
(release/build) this way the entire release/build could be re-vectored.
Surely I can rerun CMake and do, but what about when switching Debug/Release in VS? It would make it easier.
How about the SuperBuilds and SuperBuilds of SuperBuilds? For superbuilds of superbuilds not supporting debug postfix on libs (by not passing flag to ExternalProject_Add calls) makes it difficult switching release/debug. This could be one way around the current problem.