mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 10:21:57 -05:00
Use proper paths for discord-rpc in cmake
This commit is contained in:
parent
7612c2881d
commit
8f50660ad6
1 changed files with 3 additions and 3 deletions
|
@ -102,10 +102,10 @@ set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -fstrict-overflow")
|
|||
ADD_CHECK_C_COMPILER_FLAG(CMAKE_C_FLAGS C_WARN_STRICT_OVERFLOW -Wstrict-overflow=1)
|
||||
ADD_CHECK_CXX_COMPILER_FLAG(CMAKE_CXX_FLAGS CXX_WARN_STRICT_OVERFLOW -Wstrict-overflow=1)
|
||||
|
||||
if(EXISTS discord-rpc)
|
||||
add_subdirectory(discord-rpc)
|
||||
if(EXISTS "${ROOT_DIR}/discord-rpc")
|
||||
add_subdirectory("${ROOT_DIR}/discord-rpc")
|
||||
add_definitions(-D__ENABLE_DISCORD__)
|
||||
include_directories(discord-rpc/include)
|
||||
include_directories("${ROOT_DIR}/discord-rpc/include")
|
||||
set(HAVE_DISCORD_RPC TRUE)
|
||||
message("Building with discord-rpc support")
|
||||
else()
|
||||
|
|
Loading…
Reference in a new issue