From 0ea7ddbd5a7b63556028796ea5183c901a05d59f Mon Sep 17 00:00:00 2001 From: Max Kamps Date: Sun, 12 Nov 2017 03:29:22 +0100 Subject: [PATCH] Fix CMake issue when ENABLE_IO_THREAD=OFF (#28) This was probably just a typo. --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c96ab34..00ea0cb 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -85,7 +85,7 @@ endif(UNIX) target_include_directories(discord-rpc PRIVATE ${RAPIDJSON}/include) if (NOT ${ENABLE_IO_THREAD}) - add_definitions(discord-rpc PUBLIC -DDISCORD_DISABLE_IO_THREAD) + target_compile_definitions(discord-rpc PUBLIC -DDISCORD_DISABLE_IO_THREAD) endif (NOT ${ENABLE_IO_THREAD}) if (${BUILD_DYNAMIC_LIB})