From 483c0b88bfc1b798396c31a4dd2f5239399ce59e Mon Sep 17 00:00:00 2001 From: manuel Date: Mon, 15 Oct 2018 01:14:02 +0200 Subject: sync with upstream --- cmake/modules/FindNFS.cmake | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) (limited to 'cmake/modules') 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 set(NFS_VERSION ${PC_NFS_VERSION}) +find_library(NFS_LIBRARY NAMES nfs libnfs + PATHS ${PC_NFS_LIBDIR}) + include(FindPackageHandleStandardArgs) -if(NOT WIN32) - find_library(NFS_LIBRARY NAMES nfs - PATHS ${PC_NFS_LIBDIR}) - - find_package_handle_standard_args(NFS - REQUIRED_VARS NFS_LIBRARY NFS_INCLUDE_DIR - VERSION_VAR NFS_VERSION) -else() - # Dynamically loaded DLL - find_package_handle_standard_args(NFS - REQUIRED_VARS NFS_INCLUDE_DIR - VERSION_VAR NFS_VERSION) -endif() +find_package_handle_standard_args(NFS + REQUIRED_VARS NFS_LIBRARY NFS_INCLUDE_DIR + VERSION_VAR NFS_VERSION) if(NFS_FOUND) set(NFS_LIBRARIES ${NFS_LIBRARY}) -- cgit v1.2.3