From 6510d7209782efbce5d5a3f78e682c8ccbaf7e51 Mon Sep 17 00:00:00 2001 From: boyned Date: Wed, 4 Jan 2017 20:03:50 -0800 Subject: [PATCH] Fixed CMakeLists.txt not working for Python 3 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1734189..55037cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -327,7 +327,7 @@ if(BUILD_PYTHON) # Get the python install directory execute_process( COMMAND ${PYTHON_EXECUTABLE} - -c "from distutils.sysconfig import get_python_lib; print get_python_lib(True)" + -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(True))" OUTPUT_VARIABLE PYTHON_ARCH_DIR) STRING(REGEX REPLACE "(\r?\n)+$" "" PYTHON_ARCH_DIR "${PYTHON_ARCH_DIR}") set(PYTHON_INSTALL_DIR "${PYTHON_ARCH_DIR}" CACHE STRING