Adjust branch for clang and other compilers

Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
This commit is contained in:
TheJackiMonster 2022-09-30 15:04:45 +02:00
parent 902e61d5bb
commit 0ce4ff5c5a
No known key found for this signature in database
GPG Key ID: D850A5F772E880F9

View File

@ -44,8 +44,8 @@ elseif(CMAKE_GENERATOR_PLATFORM STREQUAL "Win32" OR CMAKE_EXE_LINKER_FLAGS STREQ
elseif(CMAKE_SYSTEM_PROCESSOR)
set(FSR2_PLATFORM_NAME ${CMAKE_SYSTEM_PROCESSOR})
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
add_compile_definitions(FFX_GCC)
if ((CMAKE_CXX_COMPILER_ID STREQUAL "GNU") OR (NOT MSVC))
add_compile_definitions(FFX_GCC) # Should work with gcc and others
endif()
else()
message(FATAL_ERROR "Unsupported target platform - only supporting x64 and Win32 currently")