MinSizeRel
MinSizeRel stands for minimum size release and is one of the standard build configurations provided by CMake. It designates a release-style build that prioritizes small binary size over execution speed. This configuration is commonly used when minimizing the footprint of a produced artifact is more important than raw performance, such as in embedded deployment or distribution packaging.
When you configure a project with CMake, you select MinSizeRel as the build type by setting CMAKE_BUILD_TYPE
MinSizeRel is distinct from Release, which emphasizes performance, and RelWithDebInfo, which balances speed with debugging information.
Users can further customize the flags for this configuration by setting the language-specific variables CMAKE_C_FLAGS_MINSIZEREL and