diff options
author | Rechi <Rechi@users.noreply.github.com> | 2018-09-22 15:00:00 +0200 |
---|---|---|
committer | Rechi <Rechi@users.noreply.github.com> | 2018-09-22 15:00:00 +0200 |
commit | 624733fe942ee092e87fbad0a325fc1f18057ea4 (patch) | |
tree | 496b0eb1a858269ae64da7c17f1e5d5ca1b469af /cmake | |
parent | 0150a30259d3e90e159b6780290fdd897b90c93b (diff) |
link with libnfs instead of loading it dynamic
Diffstat (limited to '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 36727c0efe..c2414a1f43 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}) |