diff options
Diffstat (limited to 'cmake/modules/FindBluray.cmake')
| -rw-r--r-- | cmake/modules/FindBluray.cmake | 21 |
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) |
| 31 | endif() | 31 | endif() |
| 32 | 32 | ||
| 33 | include(FindPackageHandleStandardArgs) | 33 | find_library(BLURAY_LIBRARY NAMES bluray libbluray |
| 34 | if(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 | 36 | include(FindPackageHandleStandardArgs) |
| 39 | REQUIRED_VARS BLURAY_LIBRARY BLURAY_INCLUDE_DIR BLURAY_VERSION | 37 | find_package_handle_standard_args(Bluray |
| 40 | VERSION_VAR BLURAY_VERSION) | 38 | REQUIRED_VARS BLURAY_LIBRARY BLURAY_INCLUDE_DIR BLURAY_VERSION |
| 41 | else() | 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) | ||
| 46 | endif() | ||
| 47 | 40 | ||
| 48 | if(BLURAY_FOUND) | 41 | if(BLURAY_FOUND) |
| 49 | set(BLURAY_LIBRARIES ${BLURAY_LIBRARY}) | 42 | set(BLURAY_LIBRARIES ${BLURAY_LIBRARY}) |
