[sword-svn] r3299 - trunk/bindings/swig/python

greg.hellings at crosswire.org greg.hellings at crosswire.org
Tue Dec 9 22:52:00 MST 2014


Author: greg.hellings
Date: 2014-12-09 22:52:00 -0700 (Tue, 09 Dec 2014)
New Revision: 3299

Modified:
   trunk/bindings/swig/python/CMakeLists.txt
Log:
Improve custom installation destination for Python

Modified: trunk/bindings/swig/python/CMakeLists.txt
===================================================================
--- trunk/bindings/swig/python/CMakeLists.txt	2014-12-04 05:27:07 UTC (rev 3298)
+++ trunk/bindings/swig/python/CMakeLists.txt	2014-12-10 05:52:00 UTC (rev 3299)
@@ -45,9 +45,9 @@
 
 # Allow user installation to custom directory
 IF(SWORD_PYTHON_INSTALL_DIR)
-	SET(SETUP_ARGS "--home=${SWORD_PYTHON_INSTALL_DIR}")
+    SET(SETUP_ARGS "--home=${SWORD_PYTHON_INSTALL_DIR} --root \$ENV{DESTDIR}")
 ELSE(SWORD_PYTHON_INSTALL_DIR)
-	SET(SETUP_ARGS "--home=${CMAKE_INSTALL_PREFIX}")
+    SET(SETUP_ARGS "--root \$ENV{DESTDIR}")
 ENDIF(SWORD_PYTHON_INSTALL_DIR)
 CONFIGURE_FILE("${CMAKE_CURRENT_SOURCE_DIR}/install.cmake.in"
 	       "${CMAKE_CURRENT_BINARY_DIR}/install.cmake")




More information about the sword-cvs mailing list