1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

Use booleans for SUPPORTS_IMPLICIT_FALLTHROUGH

CMake has booleans, so why not use them?
This commit is contained in:
Misa 2021-04-16 19:30:27 -07:00 committed by Ethan Lee
parent 2229c2c6c0
commit 83f438d694

View file

@ -229,15 +229,15 @@ elseif(CUSTOM_LEVEL_SUPPORT STREQUAL "DISABLED")
endif() endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(SUPPORTS_IMPLICIT_FALLTHROUGH 1) set(SUPPORTS_IMPLICIT_FALLTHROUGH TRUE)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0) if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
set(SUPPORTS_IMPLICIT_FALLTHROUGH 1) set(SUPPORTS_IMPLICIT_FALLTHROUGH TRUE)
else() else()
set(SUPPORTS_IMPLICIT_FALLTHROUGH 0) set(SUPPORTS_IMPLICIT_FALLTHROUGH FALSE)
endif() endif()
else() else()
set(SUPPORTS_IMPLICIT_FALLTHROUGH 0) set(SUPPORTS_IMPLICIT_FALLTHROUGH FALSE)
endif() endif()