Use PKG_SEARCH_MODULE() to find libftdi.h on distributions not having it in the standard directories. Thanks to Per Øyvind Karlsen
This commit is contained in:
parent
901ddebe01
commit
eb073d9fd0
1 changed files with 3 additions and 0 deletions
|
@ -161,6 +161,9 @@ IF (FTDI_ENGINE STREQUAL "ftd2xx")
|
|||
LIST(APPEND telldus-service_LIBRARIES ${FTD2XX_LIBRARY})
|
||||
ELSE (FTDI_ENGINE STREQUAL "ftd2xx")
|
||||
FIND_LIBRARY(FTDI_LIBRARY ftdi)
|
||||
INCLUDE(FindPkgConfig)
|
||||
PKG_SEARCH_MODULE(FTDI libftdi)
|
||||
INCLUDE_DIRECTORIES( ${FTDI_INCLUDEDIR} )
|
||||
ADD_DEFINITIONS( -DLIBFTDI )
|
||||
LIST(APPEND telldus-service_SRCS TellStick_libftdi.cpp )
|
||||
LIST(APPEND telldus-service_LIBRARIES ${FTDI_LIBRARY})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue