Warning, /acts/thirdparty/pybind11/CMakeLists.txt is written in an unsupported language. File is not indexed.
0001 cmake_minimum_required( VERSION 3.11 )
0002 include( FetchContent )
0003
0004 # Tell the user what's happening.
0005 message( STATUS "Building pybind11 as part of the ACTS project" )
0006
0007 # Declare where to get VecMem from.
0008 set( ACTS_PYBIND11_GIT_REPOSITORY "https://github.com/pybind/pybind11.git"
0009 CACHE STRING "Git repository to take pybind11 from" )
0010 set( ACTS_PYBIND11_GIT_TAG "v2.10.1" CACHE STRING "Version of pybind11 to build" )
0011 mark_as_advanced( ACTS_PYBIND11_GIT_REPOSITORY ACTS_PYBIND11_GIT_TAG )
0012 FetchContent_Declare( pybind11
0013 GIT_REPOSITORY "${ACTS_PYBIND11_GIT_REPOSITORY}"
0014 GIT_TAG "${ACTS_PYBIND11_GIT_TAG}" )
0015
0016 # Now set up its build.
0017 set(PYBIND11_TEST OFF)
0018 set(PYBIND11_INSTALL OFF)
0019 FetchContent_MakeAvailable( pybind11 )