From f05fcb3eff574790c20197c8b0c4f656597e96f2 Mon Sep 17 00:00:00 2001 From: David Brooks Date: Sat, 5 Dec 2015 14:00:01 +1300 Subject: Use Python's `site-packages` directory, not the one in the CMAKE_INSTALL_PREFIX directory. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b491ecc..dc0cb72 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,7 @@ if (NOT PYTHON_SITE_PACKAGES) COMMAND ${PYTHON_EXECUTABLE} -c "if True: from distutils import sysconfig from os.path import sep - print(sysconfig.get_python_lib(1, 0, prefix='${CMAKE_INSTALL_PREFIX}').replace(sep, '/')) + print(sysconfig.get_python_lib(1, 0).replace(sep, '/')) " OUTPUT_VARIABLE PYTHON_SITE_PACKAGES OUTPUT_STRIP_TRAILING_WHITESPACE) -- cgit v1.2.3