A few UX notes about build types
- Why not default to Release type, for both cmake and ctest? Let’s have the simple project case be the easiest to implement!
- ctest and cmake should accept the same CLI flags for overriding build type.
- CMAKE_BUILD_TYPE should apply to ctest as well as cmake.
- CMAKE_BUILD_TYPE is currently ignored for MSVC builds (cmake v3.19)
Separate concern, I noticed that RHEL suffixes the CLI tools with “3”. That does help to disambiguate for any cmake v2 or cmake v4 projects. But it would be good to register cmake with update-alternatives to provide the conventional “cmake” ,“ctest” (no suffix) commands.
This helps to make cross-platform build scripts more consistent and portable. For example, add symlinks when the cmake package is installed.