mirror of
https://github.com/Syping/dtranslatebot.git
synced 2025-09-19 15:11:42 +02:00
CMake: incomplete DPPAsExternalProject impl
This commit is contained in:
parent
716a03c43b
commit
4fe57d1a24
2 changed files with 83 additions and 1 deletions
|
@ -63,7 +63,12 @@ if (WITH_BOOST)
|
|||
endif()
|
||||
|
||||
# D++ Discord API Library for Bots
|
||||
find_package(DPP REQUIRED)
|
||||
option(WITH_DPP_AS_EXTERNAL_PROJECT "Build with DPP as External Project" OFF)
|
||||
if (WITH_DPP_AS_EXTERNAL_PROJECT)
|
||||
include(DPPAsExternalProject)
|
||||
else()
|
||||
find_package(DPP REQUIRED)
|
||||
endif()
|
||||
|
||||
# pthread Support
|
||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue