Make that define a cmake option.
This commit is contained in:
@ -1,5 +1,11 @@
|
||||
include_directories(${PROJECT_SOURCE_DIR}/include)
|
||||
|
||||
option(ENABLE_IO_THREAD "Start up a separate I/O thread, otherwise I'd need to call an update function" ON)
|
||||
|
||||
if (${ENABLE_IO_THREAD} EQUAL OFF)
|
||||
add_definitions(-DDISCORD_DISABLE_IO_THREAD)
|
||||
endif (${ENABLE_IO_THREAD} EQUAL OFF)
|
||||
|
||||
set(BASE_RPC_SRC ${PROJECT_SOURCE_DIR}/include/discord-rpc.h discord-rpc.cpp rpc_connection.h rpc_connection.cpp serialization.h serialization.cpp connection.h backoff.h)
|
||||
|
||||
if(WIN32)
|
||||
|
Reference in New Issue
Block a user