docs: `CMAKE_<CONFIG>_POSTFIX` for executables
The docs for CMAKE_<CONFIG>_POSTFIX
say:
Default filename postfix for libraries under configuration
<CONFIG>
.When a non-executable target is created its
<CONFIG>_POSTFIX
target property is initialized with the value of this variable if it is set.
But the tutorial on "Packaging Release and Debug" says:
By default, CMake's model is that a build directory only contains a single configuration, be it Debug, Release, MinSizeRel, or RelWithDebInfo. It is possible, however, to setup CPack to bundle multiple build directories and construct a package that contains multiple configurations of the same project.
First, we want to ensure that the debug and release builds use different names for the executables and libraries that will be installed. Let's use d as the postfix for the debug executable and libraries.
Set
CMAKE_DEBUG_POSTFIX
near the beginning of the top-level CMakeLists.txt file:[...]
So which is it? Does it use the postfix for executables or not?
I did a quick test on Ubuntu with Unix Makefiles and it doesn't use the postfix for executables. Is it different for other generators / host systems?