git://developer.intra2net.com
/
libftdi
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(from parent 1:
7103019
)
Allow LINK_PYTHON_LIBRARY=OFF on Darwin
author
Tim D. Smith
<git@tim-smith.us>
Wed, 17 Aug 2016 03:44:57 +0000 (20:44 -0700)
committer
Thomas Jarosch
<thomas.jarosch@intra2net.com>
Wed, 17 Aug 2016 13:46:56 +0000 (15:46 +0200)
python/CMakeLists.txt
patch
|
blob
|
blame
|
history
diff --git
a/python/CMakeLists.txt
b/python/CMakeLists.txt
index
8b52745
..
31ef1c6
100644
(file)
--- a/
python/CMakeLists.txt
+++ b/
python/CMakeLists.txt
@@
-30,6
+30,8
@@
if ( SWIG_FOUND AND PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND )
if ( LINK_PYTHON_LIBRARY )
swig_link_libraries ( ftdi1 ${PYTHON_LIBRARIES} )
+ elseif( APPLE )
+ set_target_properties ( ${SWIG_MODULE_ftdi1_REAL_NAME} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup" )
endif ()
set_target_properties ( ${SWIG_MODULE_ftdi1_REAL_NAME} PROPERTIES NO_SONAME ON )