Fix installaton of python wrapper
authorMichel Zou <xantares09@hotmail.com>
Tue, 11 Oct 2011 08:44:26 +0000 (10:44 +0200)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 11 Oct 2011 08:44:26 +0000 (10:44 +0200)
commite93b34879c5abefc8aab1c4bf020a01c9b75b21f
tree1577d59f02cbe59de62e1adbf350cc865d226d41
parent720c7d2457ae1cd43abd36b3ac7e89b896e65119
Fix installaton of python wrapper

--------------------------------------------
The python wrapper installation path is not correct:
-- Building python bindings via swig. Will be installed under /usr/site-packages

In fact it doesn't even rely on CMAKE_INSTALL_PREFIX because of this:
GET_FILENAME_COMPONENT(SITEPACKAGE ${PYTHON_LIB_INSTALL}/../site-packages ABSOLUTE)

I think it should more look like this: (here with CMAKE_INSTALL_PREFIX=/home/michel/Download/libftdi-git/build/install)
-- Installing: /home/michel/Download/libftdi-git/build/install/lib64/python2.7/site-packages/_ftdi.so
-- Installing: /home/michel/Download/libftdi-git/build/install/lib64/python2.7/site-packages/ftdi.py
--------------------------------------------
AUTHORS
bindings/CMakeLists.txt