Replace include_directories with target_include_directories
Replace old include_directories with new target_include_directories
This commit is contained in:
parent
c59fd6df20
commit
b66b3ebaac
@ -1,5 +1,3 @@
|
|||||||
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)
|
option(ENABLE_IO_THREAD "Start up a separate I/O thread, otherwise I'd need to call an update function" ON)
|
||||||
option(USE_STATIC_CRT "Use /MT[d] for dynamic library" OFF)
|
option(USE_STATIC_CRT "Use /MT[d] for dynamic library" OFF)
|
||||||
option(WARNINGS_AS_ERRORS "When enabled, compiles with `-Werror` (on *nix platforms)." OFF)
|
option(WARNINGS_AS_ERRORS "When enabled, compiles with `-Werror` (on *nix platforms)." OFF)
|
||||||
@ -71,6 +69,7 @@ if(UNIX)
|
|||||||
endif(APPLE)
|
endif(APPLE)
|
||||||
|
|
||||||
add_library(discord-rpc ${BASE_RPC_SRC})
|
add_library(discord-rpc ${BASE_RPC_SRC})
|
||||||
|
target_include_directories(discord-rpc INTERFACE ${PROJECT_SOURCE_DIR}/include)
|
||||||
target_link_libraries(discord-rpc PUBLIC pthread)
|
target_link_libraries(discord-rpc PUBLIC pthread)
|
||||||
|
|
||||||
if (APPLE)
|
if (APPLE)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user