diff options
Diffstat (limited to 'cmake/modules/FindPlist.cmake')
| -rw-r--r-- | cmake/modules/FindPlist.cmake | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/cmake/modules/FindPlist.cmake b/cmake/modules/FindPlist.cmake index cd143e9..2c86b74 100644 --- a/cmake/modules/FindPlist.cmake +++ b/cmake/modules/FindPlist.cmake | |||
| @@ -23,20 +23,13 @@ find_path(PLIST_INCLUDE_DIR plist/plist.h | |||
| 23 | 23 | ||
| 24 | set(PLIST_VERSION ${PC_PLIST_VERSION}) | 24 | set(PLIST_VERSION ${PC_PLIST_VERSION}) |
| 25 | 25 | ||
| 26 | find_library(PLIST_LIBRARY NAMES plist libplist | ||
| 27 | PATHS ${PC_PLIST_LIBDIR}) | ||
| 28 | |||
| 26 | include(FindPackageHandleStandardArgs) | 29 | include(FindPackageHandleStandardArgs) |
| 27 | if(NOT WIN32) | 30 | find_package_handle_standard_args(Plist |
| 28 | find_library(PLIST_LIBRARY NAMES plist | 31 | REQUIRED_VARS PLIST_LIBRARY PLIST_INCLUDE_DIR |
| 29 | PATHS ${PC_PLIST_LIBDIR}) | 32 | VERSION_VAR PLIST_VERSION) |
| 30 | |||
| 31 | find_package_handle_standard_args(Plist | ||
| 32 | REQUIRED_VARS PLIST_LIBRARY PLIST_INCLUDE_DIR | ||
| 33 | VERSION_VAR PLIST_VERSION) | ||
| 34 | else() | ||
| 35 | # Dynamically loaded DLL | ||
| 36 | find_package_handle_standard_args(Plist | ||
| 37 | REQUIRED_VARS PLIST_INCLUDE_DIR | ||
| 38 | VERSION_VAR PLIST_VERSION) | ||
| 39 | endif() | ||
| 40 | 33 | ||
| 41 | if(PLIST_FOUND) | 34 | if(PLIST_FOUND) |
| 42 | set(PLIST_LIBRARIES ${PLIST_LIBRARY}) | 35 | set(PLIST_LIBRARIES ${PLIST_LIBRARY}) |
