Skip to content

Commit

Permalink
python: Add quote around python command
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Nov 2, 2023
1 parent eafcead commit 2919979
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ macro(FINDPYTHON)
"import sysconfig; print(sysconfig.get_path('include'))")
endif()
execute_process(
COMMAND "${PYTHON_EXECUTABLE}" "-c" ${_PYTHON_INCLUDE_DIR_CMD}
COMMAND "${PYTHON_EXECUTABLE}" "-c" "${_PYTHON_INCLUDE_DIR_CMD}"
OUTPUT_VARIABLE PYTHON_INCLUDE_DIR
ERROR_QUIET)
string(STRIP "${PYTHON_INCLUDE_DIR}" PYTHON_INCLUDE_DIR)
Expand Down Expand Up @@ -234,7 +234,7 @@ macro(FINDPYTHON)
endif()
message(STATUS "_PYTHON_INCLUDE_DIR_CMD ${_PYTHON_INCLUDE_DIR_CMD}")
execute_process(
COMMAND "${PYTHON_EXECUTABLE}" "-c" ${_PYTHON_INCLUDE_DIR_CMD}
COMMAND "${PYTHON_EXECUTABLE}" "-c" "${_PYTHON_INCLUDE_DIR_CMD}"
OUTPUT_VARIABLE PYTHON_INCLUDE_DIR
ERROR_QUIET)
message(STATUS "PYTHON_INCLUDE_DIR ${PYTHON_INCLUDE_DIR}")
Expand Down

0 comments on commit 2919979

Please sign in to comment.