From c44d53d2e13ba69cbfbd243be4567d0f06374e35 Mon Sep 17 00:00:00 2001 From: Cynthia Date: Wed, 3 Oct 2018 02:48:32 +0200 Subject: [PATCH] Rename BUILD_EXAMPLES to DISCORD_BUILD_EXAMPLES To avoid conflicts with other libraries. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5dad9e9..4033d46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ project (DiscordRPC) include(GNUInstallDirs) -option(BUILD_EXAMPLES "Build example apps" ON) +option(DISCORD_BUILD_EXAMPLES "Build example apps" ON) # format file(GLOB_RECURSE ALL_SOURCE_FILES @@ -51,6 +51,6 @@ add_library(rapidjson STATIC IMPORTED ${RAPIDJSON}) # add subdirs add_subdirectory(src) -if (BUILD_EXAMPLES) +if (DISCORD_BUILD_EXAMPLES) add_subdirectory(examples/send-presence) -endif(BUILD_EXAMPLES) +endif(DISCORD_BUILD_EXAMPLES)