diff --git a/src/ffx-fsr2-api/CMakeLists.txt b/src/ffx-fsr2-api/CMakeLists.txt index 8b91258..89417c0 100644 --- a/src/ffx-fsr2-api/CMakeLists.txt +++ b/src/ffx-fsr2-api/CMakeLists.txt @@ -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")