I think default configuration types one can describe like this:
Debug : w/ debug symbols, w/o optimization
Release : w/o debug symbols, w/ optimization
RelWithDebInfo : w/ debug symbols, w/ optimization
MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
But I need new one:
MyConf : w/o debug symbols, w/o optimization
So, how to create it?
About table
Configurations in terms of gcc/clang compilers (CMake
3.4.1
):-g
-O3 -DNDEBUG
-O2 -g -DNDEBUG
-Os -DNDEBUG
It means:
So I don't agree with your
MinSizeRel
description because in this case I think bothMinSizeRel
andRelease
are stripped.About question
As far as I understand you want no extra flags at all (no
-g
,-O*
or-DNDEBUG
). ForMakefile
-like generators:For generators like Visual Studio you need to use
CMAKE_CONFIGURATION_TYPES
(see this answer):