diff options
author | Dave Flogeras <dflogeras2@gmail.com> | 2017-11-27 16:39:09 +0300 |
---|---|---|
committer | Dave Flogeras <dflogeras2@gmail.com> | 2017-11-27 16:39:09 +0300 |
commit | cae980ca9ecace39d776c786ef9762e5b2473092 (patch) | |
tree | 7fd6d4ce76b287ef61c5348e1ba5a942f4f11461 /CMakeLists.txt | |
parent | 2a62b853d7e936c88b7e662c3273a05dded8e6d4 (diff) |
Fix #296 - install path of Python plugins with CMake.
No need of specifying the CMAKE_PREFIX_PATH to python when asking for
sysconfig.get_python_lib since everything is installed relative to
CMAKE_PREFIX_PATH anyway.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f7dfd74..8e515ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,7 +36,7 @@ if(nanopb_BUILD_GENERATOR) find_package(PythonInterp 2.7 REQUIRED) execute_process( COMMAND ${PYTHON_EXECUTABLE} -c - "from distutils import sysconfig; print(sysconfig.get_python_lib(prefix='${CMAKE_INSTALL_PREFIX}'))" + "from distutils import sysconfig; print(sysconfig.get_python_lib(prefix=''))" OUTPUT_VARIABLE PYTHON_INSTDIR OUTPUT_STRIP_TRAILING_WHITESPACE ) |