Disable discord's examples to fix 32 bit builds

This commit is contained in:
Michał Janiszewski authored and Michał Janiszewski committed 2018-02-15 23:51:49 +01:00
1 parent 551dac9995
commit da9502ae46
1 file changed
+3
+3
View File
@@ -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")