From 2919979a4059e7be903d935859a42f2abd8ff967 Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Thu, 2 Nov 2023 13:54:35 +0100 Subject: [PATCH] python: Add quote around python command --- python.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python.cmake b/python.cmake index 8c55ff77a..f6a92041e 100644 --- a/python.cmake +++ b/python.cmake @@ -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) @@ -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}")