Skip to content

Commit

Permalink
add temporary workaround for ancient systems
Browse files Browse the repository at this point in the history
  • Loading branch information
akva2 committed Oct 3, 2024
1 parent 8ef99f0 commit ca4c0f0
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions cmake/Modules/DownloadPyBind11.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
include(FetchContent)
FetchContent_Declare(pybind11
DOWNLOAD_EXTRACT_TIMESTAMP ON
URL https://github.com/pybind/pybind11/archive/refs/tags/v2.13.6.tar.gz
URL_HASH SHA512=497c25b33b09a9c42f67131ab82e35d689e8ce089dd7639be997305ff9a6d502447b79c824508c455d559e61f0186335b54dd2771d903a7c1621833930622d1a)

if(NOT DEFINED USE_OLD_PYBIND)
set(USE_OLD_PYBIND 1)
endif()

if(USE_OLD_PYBIND)
FetchContent_Declare(pybind11
URL https://github.com/pybind/pybind11/archive/refs/tags/v2.11.1.tar.gz
URL_HASH SHA512=ed1512ff0bca3bc0a45edc2eb8c77f8286ab9389f6ff1d5cb309be24bc608abbe0df6a7f5cb18c8f80a3bfa509058547c13551c3cd6a759af708fd0cdcdd9e95)
else()
FetchContent_Declare(pybind11
DOWNLOAD_EXTRACT_TIMESTAMP ON
URL https://github.com/pybind/pybind11/archive/refs/tags/v2.13.6.tar.gz
URL_HASH SHA512=497c25b33b09a9c42f67131ab82e35d689e8ce089dd7639be997305ff9a6d502447b79c824508c455d559e61f0186335b54dd2771d903a7c1621833930622d1a)
endif()

FetchContent_MakeAvailable(pybind11)

0 comments on commit ca4c0f0

Please sign in to comment.