[Build] Use Toolchain-gcc-clang for non-MSVC

Apple compiler ID is defined as `AppleClang`. Rather than explicitly
adding every single compiler ID, this changes the build to try to apply
settings for GCC for every non-MSVC-like compilers.
This commit is contained in:
Fabrice de Gans 2024-03-18 17:12:51 -07:00
parent a565cea8e9
commit 68adb14b07
1 changed files with 1 additions and 3 deletions

View File

@ -42,10 +42,8 @@ include(Toolchain-mingw)
if(MSVC)
# This also includes clang-cl.
include(Toolchain-msvc)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL GNU OR CMAKE_CXX_COMPILER_ID STREQUAL Clang)
include(Toolchain-gcc-clang)
else()
message(FATAL_ERROR "Unsupported compiler")
include(Toolchain-gcc-clang)
endif()
# Assembler flags.