diff --git a/tools/pybind11Tools.cmake b/tools/pybind11Tools.cmake index f1c7a76d9..f6ee9788d 100644 --- a/tools/pybind11Tools.cmake +++ b/tools/pybind11Tools.cmake @@ -69,7 +69,7 @@ if(PYBIND11_MASTER_PROJECT) if(NOT DEFINED PYPY_VERSION) execute_process( COMMAND ${PYTHON_EXECUTABLE} -c - [=[import sys; print(".".join(map(str, sys.pypy_version_info[:3])))]=] + [=[import sys; sys.stdout.write(".".join(map(str, sys.pypy_version_info[:3])))]=] OUTPUT_VARIABLE pypy_version) set(PYPY_VERSION ${pypy_version}