From ee918a4535123b85ae710f8063a3b8ca26a2768b Mon Sep 17 00:00:00 2001 From: orbea Date: Tue, 17 Mar 2020 12:32:07 -0700 Subject: [PATCH] cmake: Disable discord-rpc for libretro builds. --- CMakeLists.txt | 2 +- ext/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()