File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -34,8 +34,9 @@ function(check_python_package PACKAGENAME OUTPUT_VAR)
34
34
if (NEED_TO_RUN_CHECK )
35
35
set (PY_INTERP_FOR_${OUTPUT_VAR} ${Python3_EXECUTABLE} CACHE INTERNAL "The python interpreter used to run the ${OUTPUT_VAR} check" FORCE )
36
36
37
- execute_process (COMMAND ${Python3_EXECUTABLE} ${PYTHON_PACKAGECHECK_SCRIPT} ${PACKAGENAME}
38
- RESULT_VARIABLE PACKAGECHECK_RESULT )
37
+ execute_process (
38
+ COMMAND ${Python3_EXECUTABLE} ${PYTHON_PACKAGECHECK_SCRIPT} ${PACKAGENAME} RESULT_VARIABLE PACKAGECHECK_RESULT
39
+ )
39
40
40
41
if (${PACKAGECHECK_RESULT} EQUAL 0 )
41
42
set (HAVE_PACKAGE TRUE )
@@ -66,4 +67,4 @@ function(verify_python_package PACKAGENAME)
66
67
if (NOT ${HAVE_VAR_NAME} )
67
68
message (FATAL_ERROR "The required Python package ${PACKAGENAME} was not found in ${Python3_EXECUTABLE} . Please install it." )
68
69
endif ()
69
- endfunction (verify_python_package )
70
+ endfunction (verify_python_package )
You can’t perform that action at this time.
0 commit comments