summaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindCEC.cmake
diff options
context:
space:
mode:
authormanuel <manuel@mausz.at>2018-08-30 00:42:04 +0200
committermanuel <manuel@mausz.at>2018-08-30 00:42:04 +0200
commit2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a (patch)
treecc9e1f8ea69eebca8416677b2470a5b3f11a850e /cmake/modules/FindCEC.cmake
parentb3d195f0188758a14875a5a2f270e4fd190a679f (diff)
downloadkodi-pvr-build-2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a.tar.gz
kodi-pvr-build-2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a.tar.bz2
kodi-pvr-build-2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a.zip
sync with upstream
Diffstat (limited to 'cmake/modules/FindCEC.cmake')
-rw-r--r--cmake/modules/FindCEC.cmake21
1 files changed, 7 insertions, 14 deletions
diff --git a/cmake/modules/FindCEC.cmake b/cmake/modules/FindCEC.cmake
index bd6fd1d..00b2e12 100644
--- a/cmake/modules/FindCEC.cmake
+++ b/cmake/modules/FindCEC.cmake
@@ -3,7 +3,7 @@
3# ------- 3# -------
4# Finds the libCEC library 4# Finds the libCEC library
5# 5#
6# This will will define the following variables:: 6# This will define the following variables::
7# 7#
8# CEC_FOUND - system has libCEC 8# CEC_FOUND - system has libCEC
9# CEC_INCLUDE_DIRS - the libCEC include directory 9# CEC_INCLUDE_DIRS - the libCEC include directory
@@ -33,20 +33,13 @@ if(NOT CEC_FIND_VERSION)
33 set(CEC_FIND_VERSION 4.0.0) 33 set(CEC_FIND_VERSION 4.0.0)
34endif() 34endif()
35 35
36include(FindPackageHandleStandardArgs) 36find_library(CEC_LIBRARY NAMES cec
37if(NOT WIN32) 37 PATHS ${PC_CEC_LIBDIR})
38 find_library(CEC_LIBRARY NAMES cec
39 PATHS ${PC_CEC_LIBDIR})
40 38
41 find_package_handle_standard_args(CEC 39include(FindPackageHandleStandardArgs)
42 REQUIRED_VARS CEC_LIBRARY CEC_INCLUDE_DIR 40find_package_handle_standard_args(CEC
43 VERSION_VAR CEC_VERSION) 41 REQUIRED_VARS CEC_LIBRARY CEC_INCLUDE_DIR
44else() 42 VERSION_VAR CEC_VERSION)
45 # Dynamically loaded DLL
46 find_package_handle_standard_args(CEC
47 REQUIRED_VARS CEC_INCLUDE_DIR
48 VERSION_VAR CEC_VERSION)
49endif()
50 43
51if(CEC_FOUND) 44if(CEC_FOUND)
52 set(CEC_LIBRARIES ${CEC_LIBRARY}) 45 set(CEC_LIBRARIES ${CEC_LIBRARY})