summaryrefslogtreecommitdiff
path: root/CMake/FindSeccomp.cmake
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2020-11-05 00:14:32 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2020-11-05 09:40:50 +0100
commit287912d6fc7ab0ab0b5f69a4a5260b5bf53121ba (patch)
tree63c19efefb8d6c07ee9038d3a6b9cbc35e9ea3cb /CMake/FindSeccomp.cmake
parente748e07aaab817b3ada3a1b01bf80dbe52852952 (diff)
Rename CMake find_package helpers to avoid developer warnings
| CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message): | The package name passed to `find_package_handle_standard_args` (Berkeley) | does not match the name of the calling package (BerkeleyDB). This can lead | to problems in calling code that expects `find_package` result variables | (e.g., `_FOUND`) to follow a certain pattern. | Call Stack (most recent call first): | CMake/FindBerkeleyDB.cmake:57 (find_package_handle_standard_args) | CMakeLists.txt:83 (find_package) | This warning is for project developers. Use -Wno-dev to suppress it. And indeed, we checked for BERKLEY_DB_FOUND which was not defined so our HAVE_BDB was not set – just that it is never used, so it wasn't noticed.
Diffstat (limited to 'CMake/FindSeccomp.cmake')
-rw-r--r--CMake/FindSeccomp.cmake25
1 files changed, 0 insertions, 25 deletions
diff --git a/CMake/FindSeccomp.cmake b/CMake/FindSeccomp.cmake
deleted file mode 100644
index 5cfd13a37..000000000
--- a/CMake/FindSeccomp.cmake
+++ /dev/null
@@ -1,25 +0,0 @@
-# - Try to find SECCOMP
-# Once done, this will define
-#
-# SECCOMP_FOUND - system has SECCOMP
-# SECCOMP_INCLUDE_DIRS - the SECCOMP include directories
-# SECCOMP_LIBRARIES - the SECCOMP library
-find_package(PkgConfig)
-
-pkg_check_modules(SECCOMP_PKGCONF libseccomp)
-
-find_path(SECCOMP_INCLUDE_DIRS
- NAMES seccomp.h
- PATHS ${SECCOMP_PKGCONF_INCLUDE_DIRS}
-)
-
-
-find_library(SECCOMP_LIBRARIES
- NAMES seccomp
- PATHS ${SECCOMP_PKGCONF_LIBRARY_DIRS}
-)
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(SECCOMP DEFAULT_MSG SECCOMP_INCLUDE_DIRS SECCOMP_LIBRARIES)
-
-mark_as_advanced(SECCOMP_INCLUDE_DIRS SECCOMP_LIBRARIES)