mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-23 00:05:35 +00:00
CMake: move GCC check after CLANG, so that CLANG is properly recognized
from a patchset by Vladislav Dmitrievich Turbanov: https://github.com/libsdl-org/SDL/pull/4062
This commit is contained in:
parent
81cdb1bb0d
commit
05cc9e3764
|
@ -191,12 +191,12 @@ else()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Compiler info
|
# Compiler info
|
||||||
if(CMAKE_COMPILER_IS_GNUCC)
|
if(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
||||||
set(USE_GCC TRUE)
|
|
||||||
set(OPT_DEF_ASM TRUE)
|
|
||||||
elseif(CMAKE_C_COMPILER_ID MATCHES "Clang")
|
|
||||||
set(USE_CLANG TRUE)
|
set(USE_CLANG TRUE)
|
||||||
set(OPT_DEF_ASM TRUE)
|
set(OPT_DEF_ASM TRUE)
|
||||||
|
elseif(CMAKE_COMPILER_IS_GNUCC)
|
||||||
|
set(USE_GCC TRUE)
|
||||||
|
set(OPT_DEF_ASM TRUE)
|
||||||
elseif(MSVC_VERSION GREATER 1400) # VisualStudio 8.0+
|
elseif(MSVC_VERSION GREATER 1400) # VisualStudio 8.0+
|
||||||
set(OPT_DEF_ASM TRUE)
|
set(OPT_DEF_ASM TRUE)
|
||||||
#set(CMAKE_C_FLAGS "/ZI /WX- /
|
#set(CMAKE_C_FLAGS "/ZI /WX- /
|
||||||
|
|
Loading…
Reference in a new issue