diff options
author | David Brooks <dave@bcs.co.nz> | 2015-12-05 14:00:01 +1300 |
---|---|---|
committer | David Brooks <dave@bcs.co.nz> | 2015-12-05 14:00:01 +1300 |
commit | f05fcb3eff574790c20197c8b0c4f656597e96f2 (patch) | |
tree | 49a4cfe35c4c846b908697f426c057b953e5676b | |
parent | fc7e44469a6252c59a1919842a553c0c30d2ad87 (diff) |
Use Python's `site-packages` directory, not the one in the CMAKE_INSTALL_PREFIX directory.
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
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) |