Skip to content

Commit 5436299

Browse files
committed
bump pybind11 version to VG/v2.11
1 parent eacc22b commit 5436299

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

python/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.12)
33
FetchContent_Declare(
44
pybind11
55
GIT_REPOSITORY https://github.com/ValeevGroup/pybind11.git
6-
GIT_TAG 80d452484c5409444b0ec19383faa84bb7a4d351 # v2.4.3
6+
GIT_TAG ValeevGroup/v2.11
77
)
88
FetchContent_MakeAvailable(pybind11)
99

@@ -39,19 +39,19 @@ if (BUILD_TESTING)
3939

4040
# check for presence of prerequisite modules
4141
foreach(_mod pytest numpy)
42-
execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import ${_mod}"
42+
execute_process(COMMAND ${Python_EXECUTABLE} -c "import ${_mod}"
4343
OUTPUT_QUIET ERROR_QUIET
4444
RESULTS_VARIABLE check_for_${_mod})
4545
if (check_for_${_mod})
46-
message(FATAL_ERROR "Python module \"${_mod}\" is not installed; install via \"${PYTHON_EXECUTABLE} -m pip install ${_mod}\" and rerun cmake")
46+
message(FATAL_ERROR "Python module \"${_mod}\" is not installed; install via \"${Python_EXECUTABLE} -m pip install ${_mod}\" and rerun cmake")
4747
endif(check_for_${_mod})
4848
endforeach(_mod)
4949

5050
# test step
5151
add_test(
5252
NAME tiledarray/unit/python/run
5353
# need to use pytest to find tiledarray module properly
54-
COMMAND ${PYTHON_EXECUTABLE} -m pytest ${PROJECT_SOURCE_DIR}/test_tiledarray.py -v
54+
COMMAND ${Python_EXECUTABLE} -m pytest ${PROJECT_SOURCE_DIR}/test_tiledarray.py -v
5555
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
5656
)
5757
set_tests_properties(tiledarray/unit/python/run

0 commit comments

Comments
 (0)