Skip to content

Commit

Permalink
Fix 3rd party repos pulling this this source
Browse files Browse the repository at this point in the history
  • Loading branch information
MazTheMan committed Dec 7, 2023
1 parent e2e2f8d commit df58ca3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ if (skyr_ENABLE_JSON_FUNCTIONS)
GIT_TAG v3.11.3
OPTIONS "JSON_Install ON"
)
add_library(json INTERFACE)
target_include_directories(json INTERFACE ${json_SOURCE_DIR}/include)
endif()

if (skyr_USE_STATIC_CRT AND (SKY_CXX_COMPILER_CLANGCL OR SKY_CXX_COMPILER_MSVC))
Expand Down
1 change: 1 addition & 0 deletions src/v1/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ if (skyr_ENABLE_JSON_FUNCTIONS)
INTERFACE
skyr-url-v1
nlohmann_json::nlohmann_json
$<BUILD_INTERFACE:json>
)

target_include_directories(
Expand Down
1 change: 1 addition & 0 deletions src/v2/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ if (skyr_ENABLE_JSON_FUNCTIONS)
INTERFACE
skyr-url-v2
nlohmann_json::nlohmann_json
$<BUILD_INTERFACE:json>
)

target_include_directories(
Expand Down

0 comments on commit df58ca3

Please sign in to comment.