File: DownloadPyBind11.cmake

package info (click to toggle)
opm-common 2024.10%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 98,420 kB
  • sloc: cpp: 263,013; python: 3,155; sh: 198; xml: 174; pascal: 136; makefile: 12
file content (14 lines) | stat: -rw-r--r-- 754 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
include(FetchContent)

if(Python3_VERSION_MINOR LESS 8)
  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)