File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ cmake_minimum_required(VERSION 3.12)
3
3
FetchContent_Declare (
4
4
pybind11
5
5
GIT_REPOSITORY https://github.com/ValeevGroup/pybind11.git
6
- GIT_TAG 80d452484c5409444b0ec19383faa84bb7a4d351 # v2.4.3
6
+ GIT_TAG ValeevGroup/ v2.11
7
7
)
8
8
FetchContent_MakeAvailable (pybind11 )
9
9
@@ -39,19 +39,19 @@ if (BUILD_TESTING)
39
39
40
40
# check for presence of prerequisite modules
41
41
foreach (_mod pytest numpy )
42
- execute_process (COMMAND ${PYTHON_EXECUTABLE } -c "import ${_mod} "
42
+ execute_process (COMMAND ${Python_EXECUTABLE } -c "import ${_mod} "
43
43
OUTPUT_QUIET ERROR_QUIET
44
44
RESULTS_VARIABLE check_for_${_mod} )
45
45
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" )
47
47
endif (check_for_${_mod} )
48
48
endforeach (_mod )
49
49
50
50
# test step
51
51
add_test (
52
52
NAME tiledarray/unit/python/run
53
53
# 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
55
55
WORKING_DIRECTORY ${PROJECT_BINARY_DIR}
56
56
)
57
57
set_tests_properties (tiledarray/unit/python/run
You can’t perform that action at this time.
0 commit comments