summaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindBluray.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/FindBluray.cmake')
-rw-r--r--cmake/modules/FindBluray.cmake21
1 files changed, 7 insertions, 14 deletions
diff --git a/cmake/modules/FindBluray.cmake b/cmake/modules/FindBluray.cmake
index 3c29f54..58a9a91 100644
--- a/cmake/modules/FindBluray.cmake
+++ b/cmake/modules/FindBluray.cmake
@@ -3,7 +3,7 @@
3# ---------- 3# ----------
4# Finds the libbluray library 4# Finds the libbluray library
5# 5#
6# This will will define the following variables:: 6# This will define the following variables::
7# 7#
8# BLURAY_FOUND - system has libbluray 8# BLURAY_FOUND - system has libbluray
9# BLURAY_INCLUDE_DIRS - the libbluray include directory 9# BLURAY_INCLUDE_DIRS - the libbluray include directory
@@ -30,20 +30,13 @@ if(NOT BLURAY_VERSION AND EXISTS ${BLURAY_INCLUDE_DIR}/libbluray/bluray-version.
30 unset(_bluray_version_str) 30 unset(_bluray_version_str)
31endif() 31endif()
32 32
33include(FindPackageHandleStandardArgs) 33find_library(BLURAY_LIBRARY NAMES bluray libbluray
34if(NOT WIN32) 34 PATHS ${PC_BLURAY_LIBDIR})
35 find_library(BLURAY_LIBRARY NAMES bluray
36 PATHS ${PC_BLURAY_LIBDIR})
37 35
38 find_package_handle_standard_args(Bluray 36include(FindPackageHandleStandardArgs)
39 REQUIRED_VARS BLURAY_LIBRARY BLURAY_INCLUDE_DIR BLURAY_VERSION 37find_package_handle_standard_args(Bluray
40 VERSION_VAR BLURAY_VERSION) 38 REQUIRED_VARS BLURAY_LIBRARY BLURAY_INCLUDE_DIR BLURAY_VERSION
41else() 39 VERSION_VAR BLURAY_VERSION)
42 # Dynamically loaded DLL
43 find_package_handle_standard_args(Bluray
44 REQUIRED_VARS BLURAY_INCLUDE_DIR
45 VERSION_VAR BLURAY_VERSION)
46endif()
47 40
48if(BLURAY_FOUND) 41if(BLURAY_FOUND)
49 set(BLURAY_LIBRARIES ${BLURAY_LIBRARY}) 42 set(BLURAY_LIBRARIES ${BLURAY_LIBRARY})