diff options
author | Stefan Saraev <stefan@saraev.ca> | 2016-12-15 12:29:08 +0200 |
---|---|---|
committer | Stefan Saraev <stefan@saraev.ca> | 2016-12-15 12:29:11 +0200 |
commit | e5925d108b1d4d319650c5caa64d5ea19dcf1065 (patch) | |
tree | da0c9475d790485ad4b9e7340ac7a80566cb912b /project | |
parent | 1fd33407e72c58da4db53eb6fb4f3ab0cb9a39fa (diff) |
[cmake] FindMicroHttpd: do not assume gcrypt / gpg-error
... use mhd static library dependencies instead if not
using unified depends
Diffstat (limited to 'project')
-rw-r--r-- | project/cmake/modules/FindMicroHttpd.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/project/cmake/modules/FindMicroHttpd.cmake b/project/cmake/modules/FindMicroHttpd.cmake index 66178810e9..8eecbc4e0a 100644 --- a/project/cmake/modules/FindMicroHttpd.cmake +++ b/project/cmake/modules/FindMicroHttpd.cmake @@ -35,7 +35,7 @@ if(MICROHTTPD_FOUND) set(MICROHTTPD_INCLUDE_DIRS ${MICROHTTPD_INCLUDE_DIR}) set(MICROHTTPD_DEFINITIONS -DHAVE_LIBMICROHTTPD=1) - if(NOT WIN32) + if(KODI_DEPENDSBUILD AND NOT WIN32) find_library(GCRYPT_LIBRARY gcrypt) find_library(GPGERROR_LIBRARY gpg-error) list(APPEND MICROHTTPD_LIBRARIES ${GCRYPT_LIBRARY} ${GPGERROR_LIBRARY}) @@ -43,6 +43,8 @@ if(MICROHTTPD_FOUND) if(NOT APPLE AND NOT CORE_SYSTEM_NAME STREQUAL android) list(APPEND MICROHTTPD_LIBRARIES rt) endif() + else() + list(APPEND MICROHTTPD_LIBRARIES ${PC_MICROHTTPD_STATIC_LIBRARIES}) endif() endif() |