[opengm] 13/50: use CMAKE_INSTALL_PREFIX friendly install path

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Sun Nov 1 17:14:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch master
in repository opengm.

commit 2f84f279632afc781184bee86c34ef5cc261996a
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Oct 21 14:42:05 2015 +0100

    use CMAKE_INSTALL_PREFIX friendly install path
---
 CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 848471a..2f03a53 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -690,7 +690,8 @@ if(BUILD_PYTHON_WRAPPER)
    ) 
 
    #find_path(PYTHON_MODULE_INSTALL )   
-   install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/src/interfaces/python/opengm" DESTINATION "${OPENGM_PYTHON_MODULE_INSTALL_DIR}" 
+   install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/src/interfaces/python/opengm"
+   DESTINATION "lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages"
    PATTERN ".py" 
    PATTERN ".git"  EXCLUDE 
    PATTERN  ".txt" EXCLUDE

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opengm.git



More information about the debian-science-commits mailing list