File: pybind11.cmake

package info (click to toggle)
libbgcode 0.0~git20251210.0773cea-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,264 kB
  • sloc: cpp: 3,712; python: 255; makefile: 6
file content (13 lines) | stat: -rw-r--r-- 417 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
set(_exclude_from_all OFF)

if (NOT ${PROJECT_NAME}_BUILD_pybind11 AND NOT ${PROJECT_NAME}_BUILD_ALL)
  set(_exclude_from_all ON)
endif ()

add_cmake_project(pybind11
    EXCLUDE_FROM_ALL ${_exclude_from_all}
    URL https://github.com/pybind/pybind11/archive/refs/tags/v2.11.1.zip
    URL_HASH SHA256=b011a730c8845bfc265f0f81ee4e5e9e1d354df390836d2a25880e123d021f89
    CMAKE_ARGS
        -DPYBIND11_TEST:BOOL=OFF
)