The branch, master has been updated
via 1f38932a151adc247afa50708c8e5a8c65afda63 (commit)
from f37a15246fb738210ecc188d168039037adc50bf (commit)
- Log -----------------------------------------------------------------
commit 1f38932a151adc247afa50708c8e5a8c65afda63
Author: Michel Zou <xantares09@xxxxxxxxxxx>
Date: Tue Aug 21 10:00:34 2012 +0200
Avoid to link python libs on debian
-----------------------------------------------------------------------
Summary of changes:
bindings/CMakeLists.txt | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/bindings/CMakeLists.txt b/bindings/CMakeLists.txt
index 28061a6..7abf655 100644
--- a/bindings/CMakeLists.txt
+++ b/bindings/CMakeLists.txt
@@ -10,8 +10,14 @@ if(PYTHON_BINDINGS AND SWIG_FOUND AND PYTHONLIBS_FOUND AND
PYTHONINTERP_FOUND)
INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_PATH})
LINK_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/../src)
- SWIG_ADD_MODULE(ftdi1 python ftdi1.i)
- SWIG_LINK_LIBRARIES(ftdi1 ftdi1 ${PYTHON_LIBRARIES})
+ swig_add_module ( ftdi1 python ftdi1.i )
+ swig_link_libraries ( ftdi1 ftdi1 )
+
+ # do not link python modules on debian
+ #
http://www.debian.org/doc/packaging-manuals/python-policy/ch-module_packages.html
+ if ( NOT EXISTS "/etc/debian_version" )
+ swig_link_libraries ( ftdi1 ${PYTHON_LIBRARIES} )
+ endif ()
execute_process ( COMMAND ${PYTHON_EXECUTABLE} -c "import sys; print
'%d.%d' % ( sys.version_info[0], sys.version_info[1] )"
OUTPUT_VARIABLE PYTHON_VERSION
hooks/post-receive
--
A library to talk to FTDI chips
--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|