Fix CMake issue when ENABLE_IO_THREAD=OFF (#28)

This was probably just a typo.
This commit is contained in:
Max Kamps 2017-11-12 03:29:22 +01:00 committed by Chris Marsh
parent 2f54e62c23
commit 0ea7ddbd5a

View File

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