Skip to content

Commit 634b513

Browse files
committed
fix: only use include directory from taocpp::json
1 parent 7662396 commit 634b513

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,9 +389,10 @@ endif()
389389

390390
if(GRAPHQL_USE_TAOCPP_JSON)
391391
find_package(taocpp-json CONFIG REQUIRED)
392+
get_target_property(TAOCPP_JSON_INCLUDE_DIRS taocpp::json INTERFACE_INCLUDE_DIRECTORIES)
392393
set(BUILD_GRAPHQLJSON ON)
393394
add_library(graphqljson TaoCppJSONResponse.cpp)
394-
target_link_libraries(graphqljson PRIVATE taocpp::json)
395+
target_include_directories(graphqljson PRIVATE ${TAOCPP_JSON_INCLUDE_DIRS})
395396
elseif(GRAPHQL_USE_RAPIDJSON)
396397
find_package(RapidJSON CONFIG REQUIRED)
397398
set(BUILD_GRAPHQLJSON ON)

0 commit comments

Comments
 (0)