Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Dec 3, 2024
1 parent 11cff2c commit 55d16aa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmake/FindNumPy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 "")
Expand Down

0 comments on commit 55d16aa

Please sign in to comment.