aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules/FindPlist.cmake
diff options
context:
space:
mode:
authorLukas Rusak <lorusak@gmail.com>2019-05-18 10:51:56 -0700
committerLukas Rusak <lorusak@gmail.com>2019-05-23 18:26:27 -0700
commitcd8c4c4ab665e19ec412f11a56ecb73d0c27cac9 (patch)
tree05ded88422f1b5dbbfed5aba86ba05a67d1de648 /cmake/modules/FindPlist.cmake
parent15349b09d436007c0e4401fa17108abaf98cd37f (diff)
AirPlayServer: don't dynamically open libplist
Diffstat (limited to 'cmake/modules/FindPlist.cmake')
-rw-r--r--cmake/modules/FindPlist.cmake19
1 files changed, 6 insertions, 13 deletions
diff --git a/cmake/modules/FindPlist.cmake b/cmake/modules/FindPlist.cmake
index cd143e982b..2c86b7493a 100644
--- a/cmake/modules/FindPlist.cmake
+++ b/cmake/modules/FindPlist.cmake
@@ -23,20 +23,13 @@ find_path(PLIST_INCLUDE_DIR plist/plist.h
set(PLIST_VERSION ${PC_PLIST_VERSION})
+find_library(PLIST_LIBRARY NAMES plist libplist
+ PATHS ${PC_PLIST_LIBDIR})
+
include(FindPackageHandleStandardArgs)
-if(NOT WIN32)
- find_library(PLIST_LIBRARY NAMES plist
- PATHS ${PC_PLIST_LIBDIR})
-
- find_package_handle_standard_args(Plist
- REQUIRED_VARS PLIST_LIBRARY PLIST_INCLUDE_DIR
- VERSION_VAR PLIST_VERSION)
-else()
- # Dynamically loaded DLL
- find_package_handle_standard_args(Plist
- REQUIRED_VARS PLIST_INCLUDE_DIR
- VERSION_VAR PLIST_VERSION)
-endif()
+find_package_handle_standard_args(Plist
+ REQUIRED_VARS PLIST_LIBRARY PLIST_INCLUDE_DIR
+ VERSION_VAR PLIST_VERSION)
if(PLIST_FOUND)
set(PLIST_LIBRARIES ${PLIST_LIBRARY})