diff --git a/CMakeLists.txt b/CMakeLists.txt index dc0d6435..b855be09 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)) diff --git a/src/v1/CMakeLists.txt b/src/v1/CMakeLists.txt index b6b4071e..b78007bf 100644 --- a/src/v1/CMakeLists.txt +++ b/src/v1/CMakeLists.txt @@ -177,6 +177,7 @@ if (skyr_ENABLE_JSON_FUNCTIONS) INTERFACE skyr-url-v1 nlohmann_json::nlohmann_json + $ ) target_include_directories( diff --git a/src/v2/CMakeLists.txt b/src/v2/CMakeLists.txt index 316416ca..d3c095b3 100644 --- a/src/v2/CMakeLists.txt +++ b/src/v2/CMakeLists.txt @@ -67,6 +67,7 @@ if (skyr_ENABLE_JSON_FUNCTIONS) INTERFACE skyr-url-v2 nlohmann_json::nlohmann_json + $ ) target_include_directories(