[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:
parent
a565cea8e9
commit
68adb14b07
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue