diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2f162f21..80e6b506 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -418,7 +418,8 @@ if (HAVE_SYS_CAPABILITY_H) NAMES cap DOC "libcap library" ) - if (NOT LIBCAP_LIBRARIES) +# On FreeBSD <sys/capabilities.h> is present in libc, so we don't require libcap there. + if (NOT LIBCAP_LIBRARIES AND NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD") message(FATAL_ERROR "Found \"sys/capability.h\" but could not find libcap") endif() else() |