>>>>> "Drasko" == Drasko DRASKOVIC <drasko.draskovic@xxxxxxxxx> writes:
Drasko> Hi all, I want to install git repo to a specific directory
Drasko> (adding --prefix).
Drasko> How do we build repo ?
Drasko> I tried :
Drasko> 1) cmake -DCMAKE_INSTALL_PREFIX=/home/x/libftdi . 2) make 3)
Drasko> make install
It seems that bindings/CMakeLists.txt doesn't honor
CMAKE_INSTALL_PREFIX. Could you please try with appended patch?
Question to all: It this a valid solution?
--
Uwe Bonnes bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
>From 4a6540d3836b309d52ff45294aec7a8f580664d5 Mon Sep 17 00:00:00 2001
From: Uwe Bonnes <bon@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 30 Mar 2011 11:25:46 +0200
Subject: Honnor ${CMAKE_INSTALL_PREFIX} when installing bindings
---
bindings/CMakeLists.txt | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/bindings/CMakeLists.txt b/bindings/CMakeLists.txt
index 5333035..9873ccc 100644
--- a/bindings/CMakeLists.txt
+++ b/bindings/CMakeLists.txt
@@ -13,7 +13,7 @@ if(PYTHON_BINDINGS AND SWIG_FOUND AND PYTHONLIBS_FOUND)
SWIG_LINK_LIBRARIES(ftdi ftdi ${PYTHON_LIBRARIES})
GET_FILENAME_COMPONENT(PYTHON_LIB_INSTALL ${PYTHON_LIBRARY} PATH)
- GET_FILENAME_COMPONENT(SITEPACKAGE ${PYTHON_LIB_INSTALL}/../site-packages
ABSOLUTE)
+ GET_FILENAME_COMPONENT(SITEPACKAGE ${CMAKE_INSTALL_PREFIX}/site-packages
ABSOLUTE)
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/_ftdi.so DESTINATION
${SITEPACKAGE})
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/ftdi.py DESTINATION
${SITEPACKAGE})
--
1.7.1
--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|