Skip to content

Commit 150387a

Browse files
authored
Merge pull request #332 from wravery/next
2 parents 633c50b + 075e172 commit 150387a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ target_sources(graphql_internal_modules PUBLIC FILE_SET HEADERS
8888
FILES
8989
${INCLUDE_ROOT}/graphqlservice/internal/Awaitable.h
9090
${INCLUDE_ROOT}/graphqlservice/internal/Base64.h
91+
${INCLUDE_ROOT}/graphqlservice/internal/DllExports.h
9192
${INCLUDE_ROOT}/graphqlservice/internal/Grammar.h
9293
${INCLUDE_ROOT}/graphqlservice/internal/Introspection.h
9394
${INCLUDE_ROOT}/graphqlservice/internal/Schema.h
@@ -389,9 +390,10 @@ endif()
389390

390391
if(GRAPHQL_USE_TAOCPP_JSON)
391392
find_package(taocpp-json CONFIG REQUIRED)
393+
get_target_property(TAOCPP_JSON_INCLUDE_DIRS taocpp::json INTERFACE_INCLUDE_DIRECTORIES)
392394
set(BUILD_GRAPHQLJSON ON)
393395
add_library(graphqljson TaoCppJSONResponse.cpp)
394-
target_link_libraries(graphqljson PRIVATE taocpp::json)
396+
target_include_directories(graphqljson PRIVATE ${TAOCPP_JSON_INCLUDE_DIRS})
395397
elseif(GRAPHQL_USE_RAPIDJSON)
396398
find_package(RapidJSON CONFIG REQUIRED)
397399
set(BUILD_GRAPHQLJSON ON)

0 commit comments

Comments
 (0)