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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,7 @@ project (DiscordRPC)
include(GNUInstallDirs) include(GNUInstallDirs)
option(BUILD_EXAMPLES "Build example apps" ON) option(DISCORD_BUILD_EXAMPLES "Build example apps" ON)
# format # format
file(GLOB_RECURSE ALL_SOURCE_FILES file(GLOB_RECURSE ALL_SOURCE_FILES
@ -51,6 +51,6 @@ add_library(rapidjson STATIC IMPORTED ${RAPIDJSON})
# add subdirs # add subdirs
add_subdirectory(src) add_subdirectory(src)
if (BUILD_EXAMPLES) if (DISCORD_BUILD_EXAMPLES)
add_subdirectory(examples/send-presence) add_subdirectory(examples/send-presence)
endif(BUILD_EXAMPLES) endif(DISCORD_BUILD_EXAMPLES)