FindPythonLibs.cmake add missing quotes

This avoids problems in the case that the the path has a space in it.
This commit is contained in:
Andrew Hundt 2017-12-07 21:47:38 -05:00 committed by GitHub
parent 1ce98eeac8
commit 706013b87a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ else()
if(_PYTHON_EXECUTABLE)
EXECUTE_PROCESS(
COMMAND ${_PYTHON_EXECUTABLE} "${_FIND_LIB_PYTHON_PY}"
COMMAND "${_PYTHON_EXECUTABLE}" "${_FIND_LIB_PYTHON_PY}"
OUTPUT_VARIABLE _PYTHON_CONFIG
RESULT_VARIABLE _PYTHON_CONFIG_RESULT
ERROR_QUIET)