Skip to content

Commit

Permalink
Update NetRocks lbnfs 6.0.x compatibility
Browse files Browse the repository at this point in the history
New lbnfs 6.0.x requires gnutls library

Update NetRocks CMakeLists.txt for lbnfs 6.0.x compatibility by adding libgnutls to linked library list.
  • Loading branch information
atolismesh authored Jan 28, 2025
1 parent 9fb2133 commit 7a4f21a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions NetRocks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ if (LIBNFS_FOUND AND ((NOT DEFINED NR_NFS) OR NR_NFS))
src/Protocol/NFS/ProtocolNFS.cpp
)
target_link_libraries(NetRocks-NFS utils ${LIBNFS_LIBRARIES})
find_package(GnuTLS)
if (GNUTLS_FOUND)
target_link_libraries(NetRocks-NFS gnutls)
endif ()
target_include_directories(NetRocks-NFS PRIVATE src ${LIBNFS_INCLUDE_DIRS})
set_target_properties(NetRocks-NFS
PROPERTIES
Expand Down

0 comments on commit 7a4f21a

Please sign in to comment.