Private
Public Access
2
0

cmake: add ${mraa_LIBS} to linker for swig libraries

This means that the correct libraries are added when mraa_LIBS is appended,
fixes ft4222 handling with SWIG APIs

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
Brendan Le Foll
2015-08-11 11:36:38 +01:00
parent 5bd5f2d546
commit eb5a3ac5d2
3 changed files with 3 additions and 3 deletions

View File

@@ -10,7 +10,7 @@ include_directories(
set_source_files_properties (mraa.i PROPERTIES CPLUSPLUS ON)
set_source_files_properties (mraa.i PROPERTIES SWIG_FLAGS "-I${CMAKE_BINARY_DIR}/src")
swig_add_module (python-mraa python mraa.i ${mraa_LIB_SRCS})
swig_link_libraries (python-mraa ${PYTHON_LIBRARIES})
swig_link_libraries (python-mraa ${PYTHON_LIBRARIES} ${mraa_LIBS})
if (DOXYGEN_FOUND)
foreach (_file ${DOCCLASSES})