Rename BUILD_EXAMPLES to DISCORD_BUILD_EXAMPLES

To avoid conflicts with other libraries.
This commit is contained in:
Cynthia
2018-10-03 02:48:32 +02:00
committed by GitHub
parent 7716eadca3
commit c44d53d2e1

View File

@ -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)