Skip to content

Commit

Permalink
fix: CMake import issues
Browse files Browse the repository at this point in the history
  • Loading branch information
EmperorYP7 committed Sep 5, 2023
1 parent 1e27b36 commit c49bcfd
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 3 additions & 1 deletion cmake/modules/Findbenchmark.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ include(FetchContent)

FetchContent_Declare(
benchmark
URL https://github.com/google/benchmark/archive/refs/tags/v1.5.5.zip
GIT_REPOSITORY https://github.com/google/benchmark.git
GIT_TAG v1.8.3
DOWNLOAD_EXTRACT_TIMESTAMP FALSE
)

set(BENCHMARK_ENABLE_TESTING OFF)
Expand Down
3 changes: 2 additions & 1 deletion cmake/modules/Findgoogletest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ include(FetchContent)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG release-1.11.0
GIT_TAG v1.14.0
DOWNLOAD_EXTRACT_TIMESTAMP FALSE
)

# For Windows: Prevent overriding the parent project's compiler/linker settings
Expand Down
7 changes: 6 additions & 1 deletion cmake/modules/Findjson.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ include(FetchContent)

set(JSON_Install ON)

FetchContent_Declare(json URL https://github.com/nlohmann/json/releases/download/v3.11.2/json.tar.xz)
FetchContent_Declare(
json
GIT_REPOSITORY https://github.com/nlohmann/json.git
GIT_TAG v3.11.2
DOWNLOAD_EXTRACT_TIMESTAMP FALSE
)

FetchContent_MakeAvailable(json)
3 changes: 2 additions & 1 deletion cmake/modules/Findpybind11.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ include(FetchContent)
FetchContent_Declare(
pybind11
GIT_REPOSITORY https://github.com/pybind/pybind11.git
GIT_TAG v2.8.0
GIT_TAG v2.11.1
DOWNLOAD_EXTRACT_TIMESTAMP FALSE
)

FetchContent_MakeAvailable(pybind11)
Expand Down

0 comments on commit c49bcfd

Please sign in to comment.