Skip to content

Commit

Permalink
local dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
milanzlicic committed May 15, 2024
1 parent 1af0b0d commit 1486b82
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions dependencies/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ set(JSON_SCHEMA_VERSION "2.1.0")

if (NOT TARGET libspdlog)
ExternalProject_Add(libspdlog
GIT_REPOSITORY "https://github.com/gabime/spdlog"
GIT_TAG "v${SPDLOG_VERSION}"
URL ${CMAKE_CURRENT_LIST_DIR}/spdlog-1.8.5.tar.gz
CMAKE_ARGS
-DCMAKE_INSTALL_PREFIX=${CMAKE_PREFIX_PATH}
-DCMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}
Expand Down Expand Up @@ -115,8 +114,7 @@ endif ()

if (NOT TARGET nlohmann_json)
ExternalProject_Add(nlohmann_json
GIT_REPOSITORY "https://github.com/nlohmann/json"
GIT_TAG "v${NLOHMANN_JSON_VERSION}"
URL ${CMAKE_CURRENT_LIST_DIR}/json-3.7.3.tar.gz
CMAKE_ARGS
-DJSON_BuildTests=OFF
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
Expand All @@ -125,8 +123,7 @@ endif ()

if (NOT TARGET json-schema)
ExternalProject_Add(json-schema
GIT_REPOSITORY "https://github.com/pboettch/json-schema-validator"
GIT_TAG "${JSON_SCHEMA_VERSION}"
URL ${CMAKE_CURRENT_LIST_DIR}/json-schema-validator-2.1.0.tar.gz
CMAKE_ARGS
-DBUILD_SHARED_LIBS=ON
-DBUILD_TESTS=OFF
Expand Down
Binary file added dependencies/json-3.7.3.tar.gz
Binary file not shown.
Binary file added dependencies/json-schema-validator-2.1.0.tar.gz
Binary file not shown.
Binary file added dependencies/spdlog-1.8.5.tar.gz
Binary file not shown.

0 comments on commit 1486b82

Please sign in to comment.