From da9502ae4680fce37c22f4acadb64cd13eacd8b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Janiszewski?= Date: Wed, 14 Feb 2018 21:17:39 +0100 Subject: [PATCH] Disable discord's examples to fix 32 bit builds --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f4c299e4e..47946be54e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -144,6 +144,9 @@ if (CXX_WARN_SUGGEST_FINAL_METHODS) endif () if(EXISTS "${ROOT_DIR}/discord-rpc") + # Don't build discord's examples, some of which are in C and do not honour + # the flags we set for C++. Also we don't use the provided examples. + set(BUILD_EXAMPLES OFF CACHE BOOL "Build example apps") add_subdirectory("${ROOT_DIR}/discord-rpc") add_definitions(-D__ENABLE_DISCORD__) include_directories("${ROOT_DIR}/discord-rpc/include")