diff --git a/CMakeLists.txt b/CMakeLists.txt index e169448af3..5f8082b596 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1804,7 +1804,7 @@ if(FFmpeg_FOUND) endif() # Discord integration -if(USE_DISCORD AND NOT IOS) +if(USE_DISCORD AND NOT IOS AND NOT LIBRETRO) add_definitions(-DUSE_DISCORD=1) target_link_libraries(${CoreLibName} discord-rpc) endif() diff --git a/ext/CMakeLists.txt b/ext/CMakeLists.txt index c9bbff9c47..322d1c368b 100644 --- a/ext/CMakeLists.txt +++ b/ext/CMakeLists.txt @@ -17,6 +17,6 @@ add_subdirectory(glslang) add_subdirectory(snappy) add_subdirectory(udis86) add_subdirectory(SPIRV-Cross-build) -if(USE_DISCORD AND NOT IOS) +if(USE_DISCORD AND NOT IOS AND NOT LIBRETRO) add_subdirectory(discord-rpc-build) endif()