From 8729c9611f1501c9dc39ef28d9d5422d5329614f Mon Sep 17 00:00:00 2001 From: Eduard Valeyev Date: Wed, 20 Dec 2023 16:16:07 -0500 Subject: [PATCH] bump pybind11 version to VG/v2.11 --- python/CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 690b35979d..168bfa2984 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.12) FetchContent_Declare( pybind11 GIT_REPOSITORY https://github.com/ValeevGroup/pybind11.git - GIT_TAG 80d452484c5409444b0ec19383faa84bb7a4d351 # v2.4.3 + GIT_TAG ValeevGroup/v2.11 ) FetchContent_MakeAvailable(pybind11) @@ -39,11 +39,11 @@ if (BUILD_TESTING) # check for presence of prerequisite modules foreach(_mod pytest numpy) - execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import ${_mod}" + execute_process(COMMAND ${Python_EXECUTABLE} -c "import ${_mod}" OUTPUT_QUIET ERROR_QUIET RESULTS_VARIABLE check_for_${_mod}) if (check_for_${_mod}) - message(FATAL_ERROR "Python module \"${_mod}\" is not installed; install via \"${PYTHON_EXECUTABLE} -m pip install ${_mod}\" and rerun cmake") + message(FATAL_ERROR "Python module \"${_mod}\" is not installed; install via \"${Python_EXECUTABLE} -m pip install ${_mod}\" and rerun cmake") endif(check_for_${_mod}) endforeach(_mod) @@ -51,7 +51,7 @@ if (BUILD_TESTING) add_test( NAME tiledarray/unit/python/run # need to use pytest to find tiledarray module properly - COMMAND ${PYTHON_EXECUTABLE} -m pytest ${PROJECT_SOURCE_DIR}/test_tiledarray.py -v + COMMAND ${Python_EXECUTABLE} -m pytest ${PROJECT_SOURCE_DIR}/test_tiledarray.py -v WORKING_DIRECTORY ${PROJECT_BINARY_DIR} ) set_tests_properties(tiledarray/unit/python/run