aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules/FindBluray.cmake
diff options
context:
space:
mode:
authorRechi <Rechi@users.noreply.github.com>2018-07-16 13:00:00 +0200
committerRechi <Rechi@users.noreply.github.com>2018-07-16 13:00:00 +0200
commit740e800c2b3fe2b785450815f9d5bee84eeabf11 (patch)
treec8b1a7684e8ec1c8217130d698ed5d0103770562 /cmake/modules/FindBluray.cmake
parentc1e760e1ee60cc1c6bd27c141a9c2072402e5d59 (diff)
link with libbluray instead of loading it dynamic
Diffstat (limited to 'cmake/modules/FindBluray.cmake')
-rw-r--r--cmake/modules/FindBluray.cmake19
1 files changed, 6 insertions, 13 deletions
diff --git a/cmake/modules/FindBluray.cmake b/cmake/modules/FindBluray.cmake
index 8e524fc756..58a9a912cb 100644
--- a/cmake/modules/FindBluray.cmake
+++ b/cmake/modules/FindBluray.cmake
@@ -30,20 +30,13 @@ if(NOT BLURAY_VERSION AND EXISTS ${BLURAY_INCLUDE_DIR}/libbluray/bluray-version.
unset(_bluray_version_str)
endif()
-include(FindPackageHandleStandardArgs)
-if(NOT WIN32)
- find_library(BLURAY_LIBRARY NAMES bluray
- PATHS ${PC_BLURAY_LIBDIR})
+find_library(BLURAY_LIBRARY NAMES bluray libbluray
+ PATHS ${PC_BLURAY_LIBDIR})
- find_package_handle_standard_args(Bluray
- REQUIRED_VARS BLURAY_LIBRARY BLURAY_INCLUDE_DIR BLURAY_VERSION
- VERSION_VAR BLURAY_VERSION)
-else()
- # Dynamically loaded DLL
- find_package_handle_standard_args(Bluray
- REQUIRED_VARS BLURAY_INCLUDE_DIR
- VERSION_VAR BLURAY_VERSION)
-endif()
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(Bluray
+ REQUIRED_VARS BLURAY_LIBRARY BLURAY_INCLUDE_DIR BLURAY_VERSION
+ VERSION_VAR BLURAY_VERSION)
if(BLURAY_FOUND)
set(BLURAY_LIBRARIES ${BLURAY_LIBRARY})