Skip to content

Commit

Permalink
CMake update to match RapidJSON changes
Browse files Browse the repository at this point in the history
Signed-off-by: Guybrush <[email protected]>
  • Loading branch information
MiguelBarro committed Apr 19, 2024
1 parent 00b3a71 commit ee9d63e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ option(TRITON_COMMON_ENABLE_JSON "Build json-related libs" ON)

if(TRITON_COMMON_ENABLE_JSON)
find_package(RapidJSON CONFIG REQUIRED)
message(STATUS "RapidJSON found. Headers: ${RAPIDJSON_INCLUDE_DIRS}")
message(STATUS "RapidJSON found. Headers: ${RapidJSON_INCLUDE_DIRS}")
endif()

set(THREADS_PREFER_PTHREAD_FLAG TRUE)
Expand Down Expand Up @@ -103,9 +103,9 @@ if(TRITON_COMMON_ENABLE_JSON)
triton-common-json
INTERFACE
$<INSTALL_INTERFACE:include>
$<INSTALL_INTERFACE:${RAPIDJSON_INCLUDE_DIRS}>
$<INSTALL_INTERFACE:${RapidJSON_INCLUDE_DIRS}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<BUILD_INTERFACE:${RAPIDJSON_INCLUDE_DIRS}>
$<BUILD_INTERFACE:${RapidJSON_INCLUDE_DIRS}>
)
endif()

Expand Down
2 changes: 1 addition & 1 deletion src/test/triton_json/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ target_include_directories(
PUBLIC
$<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../../../include>
$<BUILD_INTERFACE:${RAPIDJSON_INCLUDE_DIRS}>
$<BUILD_INTERFACE:${RapidJSON_INCLUDE_DIRS}>
PRIVATE
${CMAKE_CURRENT_SOURCE_DIR}
)
Expand Down

0 comments on commit ee9d63e

Please sign in to comment.