diff options
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}) |
