mirror of
https://github.com/darlinghq/darling.git
synced 2025-02-21 10:20:32 +00:00

The actual warnings are: --- CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:272 (message): The package name passed to `find_package_handle_standard_args` (SETCAP) does not match the name of the calling package (Setcap). 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/FindSetcap.cmake:8 (find_package_handle_standard_args) CMakeLists.txt:82 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:272 (message): The package name passed to `find_package_handle_standard_args` (FFMPEG) does not match the name of the calling package (FFmpeg). 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/FindFFmpeg.cmake:91 (find_package_handle_standard_args) src/CoreAudio/CMakeLists.txt:6 (find_package) This warning is for project developers. Use -Wno-dev to suppress it. ---
12 lines
235 B
CMake
12 lines
235 B
CMake
include(FindPackageHandleStandardArgs)
|
|
|
|
find_program(SETCAP_EXECUTABLE
|
|
NAMES setcap
|
|
PATHS /bin /usr/bin /sbin /usr/sbin
|
|
)
|
|
|
|
find_package_handle_standard_args(Setcap DEFAULT_MSG SETCAP_EXECUTABLE)
|
|
|
|
mark_as_advanced(SETCAP_EXECUTABLE)
|
|
|