diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ce0f00ab4..b01b90fc54 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -794,7 +794,7 @@ endif() if(USE_DISCORD_PRESENCE) message(STATUS "Using static DiscordRPC from Externals") - add_subdirectory(Externals/discord-rpc) + add_subdirectory(Externals/discord-rpc EXCLUDE_FROM_ALL) include_directories(Externals/discord-rpc/include) endif()