From 83f438d6945ad08927893161bb664538d5c9b1da Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 16 Apr 2021 19:30:27 -0700 Subject: [PATCH] Use booleans for SUPPORTS_IMPLICIT_FALLTHROUGH CMake has booleans, so why not use them? --- desktop_version/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/desktop_version/CMakeLists.txt b/desktop_version/CMakeLists.txt index 5fcb28b8..837a3973 100644 --- a/desktop_version/CMakeLists.txt +++ b/desktop_version/CMakeLists.txt @@ -229,15 +229,15 @@ elseif(CUSTOM_LEVEL_SUPPORT STREQUAL "DISABLED") endif() if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") - set(SUPPORTS_IMPLICIT_FALLTHROUGH 1) + set(SUPPORTS_IMPLICIT_FALLTHROUGH TRUE) elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0) - set(SUPPORTS_IMPLICIT_FALLTHROUGH 1) + set(SUPPORTS_IMPLICIT_FALLTHROUGH TRUE) else() - set(SUPPORTS_IMPLICIT_FALLTHROUGH 0) + set(SUPPORTS_IMPLICIT_FALLTHROUGH FALSE) endif() else() - set(SUPPORTS_IMPLICIT_FALLTHROUGH 0) + set(SUPPORTS_IMPLICIT_FALLTHROUGH FALSE) endif()