Skip to content

Commit b24760e

Browse files
committed
Make more verbose the debug output
1 parent 325e0bc commit b24760e

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

CMakeLists.txt

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,23 @@ if(NOT DEFINED ENV{MKL_ENABLE_INSTRUCTIONS})
9494
endif()
9595

9696
set(_PYTHON_PREFIX "Python")
97-
execute_process(COMMAND ${${_PYTHON_PREFIX}_EXECUTABLE} -c
98-
"import sys; import numpy; sys.stdout.write(numpy.get_include())"
99-
RESULT_VARIABLE _${_PYTHON_PREFIX}_RESULT
100-
OUTPUT_VARIABLE _${_PYTHON_PREFIX}_NumPy_PATH
101-
ERROR_QUIET
102-
OUTPUT_STRIP_TRAILING_WHITESPACE)
97+
execute_process(
98+
COMMAND
99+
${${_PYTHON_PREFIX}_EXECUTABLE} -c
100+
"import sys; import numpy; sys.stdout.write(numpy.get_include())"
101+
RESULT_VARIABLE _${_PYTHON_PREFIX}_RESULT
102+
OUTPUT_VARIABLE _${_PYTHON_PREFIX}_NumPy_PATH
103+
ERROR_VARIABLE _${_PYTHON_PREFIX}_NumPy_ERROR
104+
OUTPUT_STRIP_TRAILING_WHITESPACE
105+
ERROR_STRIP_TRAILING_WHITESPACE
106+
)
103107

104108
message(STATUS "NumPy detection result: ${_${_PYTHON_PREFIX}_RESULT}")
105109
message(STATUS "NumPy include path: ${_${_PYTHON_PREFIX}_NumPy_PATH}")
110+
if(_${_PYTHON_PREFIX}_NumPy_ERROR)
111+
message(STATUS "NumPy detection stderr output:")
112+
message(STATUS "${_${_PYTHON_PREFIX}_NumPy_ERROR}")
113+
endif()
106114

107115
# find Python before enabling pybind11
108116
find_package(Python 3.10...<3.15 REQUIRED COMPONENTS Development.Module NumPy)

0 commit comments

Comments
 (0)