diff options
Diffstat (limited to 'project/configuration.py')
| -rw-r--r-- | project/configuration.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/project/configuration.py b/project/configuration.py index e98b9c1..69dfe10 100644 --- a/project/configuration.py +++ b/project/configuration.py @@ -4,19 +4,16 @@ # Distributed under the MIT License. import argparse -from enum import Enum +from enum import auto, StrEnum -class Configuration(Enum): +class Configuration(StrEnum): """Correspond to CMake's default CMAKE_BUILD_TYPE values.""" - DEBUG = "Debug" - MINSIZEREL = "MinSizeRel" - RELWITHDEBINFO = "RelWithDebInfo" - RELEASE = "Release" - - def __str__(self): - return str(self.value) + DEBUG = auto() + MINSIZEREL = auto() + RELWITHDEBINFO = auto() + RELEASE = auto() @staticmethod def all(): |
