From 55d16aa41f7088a57bb9f2d8a032ac34c58984c3 Mon Sep 17 00:00:00 2001 From: Julien Schueller Date: Tue, 3 Dec 2024 21:03:35 +0100 Subject: [PATCH] debug --- cmake/FindNumPy.cmake | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmake/FindNumPy.cmake b/cmake/FindNumPy.cmake index db9f51d7..ff1f5654 100644 --- a/cmake/FindNumPy.cmake +++ b/cmake/FindNumPy.cmake @@ -50,12 +50,19 @@ execute_process(COMMAND "${Python_EXECUTABLE}" "-c" ERROR_VARIABLE _NUMPY_ERROR_VALUE OUTPUT_STRIP_TRAILING_WHITESPACE) +message(STATUS "_NUMPY_SEARCH_SUCCESS=${_NUMPY_SEARCH_SUCCESS}") + message(STATUS "_NUMPY_VALUES_OUTPUT=${_NUMPY_VALUES_OUTPUT}") + message(STATUS "_NUMPY_ERROR_VALUE=${_NUMPY_ERROR_VALUE}") + if(_NUMPY_SEARCH_SUCCESS MATCHES 0) # Convert the process output into a list string(REGEX REPLACE ";" "\\\\;" _NUMPY_VALUES ${_NUMPY_VALUES_OUTPUT}) string(REGEX REPLACE "\n" ";" _NUMPY_VALUES ${_NUMPY_VALUES}) list(GET _NUMPY_VALUES 0 NUMPY_VERSION) list(GET _NUMPY_VALUES 1 NUMPY_INCLUDE_DIRS) + message(STATUS "_NUMPY_VALUES=${_NUMPY_VALUES}") + message(STATUS "NUMPY_VERSION=${NUMPY_VERSION}") + message(STATUS "NUMPY_INCLUDE_DIRS=${NUMPY_INCLUDE_DIRS}") string(REGEX MATCH "^[0-9]+\\.[0-9]+\\.[0-9]+" _VER_CHECK "${NUMPY_VERSION}") if("${_VER_CHECK}" STREQUAL "")