summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2016-03-02 15:34:01 +0100
committerSuren A. Chilingaryan <csa@suren.me>2016-03-02 15:34:01 +0100
commiteb88dc19b8729fea5dc740e80f6f9d44791570fe (patch)
tree7a41161ba917f4fd858a23823846bf418c9012dd /CMakeLists.txt
parent867bddcf7be374221a04b7ae89f93a5f5d703ee6 (diff)
downloadpcitool-eb88dc19b8729fea5dc740e80f6f9d44791570fe.tar.gz
pcitool-eb88dc19b8729fea5dc740e80f6f9d44791570fe.tar.bz2
pcitool-eb88dc19b8729fea5dc740e80f6f9d44791570fe.tar.xz
pcitool-eb88dc19b8729fea5dc740e80f6f9d44791570fe.zip
Resolution of the user-space BAR addresses
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cd889f0..33be2fb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -49,7 +49,7 @@ if (NOT DISABLE_PYTHON)
execute_process (COMMAND ${PYTHON_EXECUTABLE} -c "import site; print site.PREFIXES[-1]" OUTPUT_VARIABLE PYTHON_PREFIX OUTPUT_STRIP_TRAILING_WHITESPACE)
file (TO_CMAKE_PATH "${PYTHON_PREFIX}" PYTHON_PREFIX)
- execute_process (COMMAND ${PYTHON_EXECUTABLE} -c "import site; print site.getsitepackages()[-1]" OUTPUT_VARIABLE PYTHON_SITE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)
+ execute_process (COMMAND ${PYTHON_EXECUTABLE} -c "import site; print site.getsitepackages()[0]" OUTPUT_VARIABLE PYTHON_SITE_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)
file (TO_CMAKE_PATH "${PYTHON_SITE_DIR}" PYTHON_SITE_DIR)
string (REGEX REPLACE "^${PYTHON_PREFIX}/" "${CMAKE_INSTALL_PREFIX}/" PYTHON_SITE_DIR "${PYTHON_SITE_DIR}")