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:
parent
2229c2c6c0
commit
83f438d694
1 changed files with 4 additions and 4 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue