Skip to content

Commit

Permalink
python: remove debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Nov 2, 2023
1 parent 2919979 commit 9a17269
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions python.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -218,11 +218,9 @@ macro(FINDPYTHON)
message(STATUS "PythonInterp: ${PYTHON_EXECUTABLE}")

# Set PYTHON_INCLUDE_DIR variables if it is not defined by the user
message(STATUS "PYTHON_EXECUTABLE ${PYTHON_EXECUTABLE}")
if(DEFINED PYTHON_EXECUTABLE)
# Retrieve the corresponding value of PYTHON_INCLUDE_DIR if it is not
# defined
message(STATUS "PYTHON_INCLUDE_DIR ${PYTHON_INCLUDE_DIR}")
if(NOT DEFINED PYTHON_INCLUDE_DIR)
if(PYTHON_VERSION_MAJOR EQUAL "2")
set(_PYTHON_INCLUDE_DIR_CMD
Expand All @@ -232,12 +230,10 @@ macro(FINDPYTHON)
set(_PYTHON_INCLUDE_DIR_CMD
"import sysconfig; print(sysconfig.get_path('include'))")
endif()
message(STATUS "_PYTHON_INCLUDE_DIR_CMD ${_PYTHON_INCLUDE_DIR_CMD}")
execute_process(
COMMAND "${PYTHON_EXECUTABLE}" "-c" "${_PYTHON_INCLUDE_DIR_CMD}"
OUTPUT_VARIABLE PYTHON_INCLUDE_DIR
ERROR_QUIET)
message(STATUS "PYTHON_INCLUDE_DIR ${PYTHON_INCLUDE_DIR}")
string(STRIP "${PYTHON_INCLUDE_DIR}" PYTHON_INCLUDE_DIR)
endif()
set(PYTHON_INCLUDE_DIRS ${PYTHON_INCLUDE_DIR})
Expand Down

0 comments on commit 9a17269

Please sign in to comment.