mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49: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()
|
||||
|
||||
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()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue