diff options
| author | manuel <manuel@mausz.at> | 2018-10-15 01:14:02 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2018-10-15 01:14:02 +0200 |
| commit | 483c0b88bfc1b798396c31a4dd2f5239399ce59e (patch) | |
| tree | 15cdb27501b1fdf3be79cc66710c4eb853e31c81 /cmake/modules/FindNFS.cmake | |
| parent | 2577b55681a97f3eec3fb0e3b5a4fb7f2cb18b8a (diff) | |
| download | kodi-pvr-build-483c0b88bfc1b798396c31a4dd2f5239399ce59e.tar.gz kodi-pvr-build-483c0b88bfc1b798396c31a4dd2f5239399ce59e.tar.bz2 kodi-pvr-build-483c0b88bfc1b798396c31a4dd2f5239399ce59e.zip | |
sync with upstream
Diffstat (limited to 'cmake/modules/FindNFS.cmake')
| -rw-r--r-- | cmake/modules/FindNFS.cmake | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/cmake/modules/FindNFS.cmake b/cmake/modules/FindNFS.cmake index 36727c0..c2414a1 100644 --- a/cmake/modules/FindNFS.cmake +++ b/cmake/modules/FindNFS.cmake | |||
| @@ -23,20 +23,13 @@ find_path(NFS_INCLUDE_DIR nfsc/libnfs.h | |||
| 23 | 23 | ||
| 24 | set(NFS_VERSION ${PC_NFS_VERSION}) | 24 | set(NFS_VERSION ${PC_NFS_VERSION}) |
| 25 | 25 | ||
| 26 | find_library(NFS_LIBRARY NAMES nfs libnfs | ||
| 27 | PATHS ${PC_NFS_LIBDIR}) | ||
| 28 | |||
| 26 | include(FindPackageHandleStandardArgs) | 29 | include(FindPackageHandleStandardArgs) |
| 27 | if(NOT WIN32) | 30 | find_package_handle_standard_args(NFS |
| 28 | find_library(NFS_LIBRARY NAMES nfs | 31 | REQUIRED_VARS NFS_LIBRARY NFS_INCLUDE_DIR |
| 29 | PATHS ${PC_NFS_LIBDIR}) | 32 | VERSION_VAR NFS_VERSION) |
| 30 | |||
| 31 | find_package_handle_standard_args(NFS | ||
| 32 | REQUIRED_VARS NFS_LIBRARY NFS_INCLUDE_DIR | ||
| 33 | VERSION_VAR NFS_VERSION) | ||
| 34 | else() | ||
| 35 | # Dynamically loaded DLL | ||
| 36 | find_package_handle_standard_args(NFS | ||
| 37 | REQUIRED_VARS NFS_INCLUDE_DIR | ||
| 38 | VERSION_VAR NFS_VERSION) | ||
| 39 | endif() | ||
| 40 | 33 | ||
| 41 | if(NFS_FOUND) | 34 | if(NFS_FOUND) |
| 42 | set(NFS_LIBRARIES ${NFS_LIBRARY}) | 35 | set(NFS_LIBRARIES ${NFS_LIBRARY}) |
