Fixes cmake case-matching warnings

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.

---
This commit is contained in:
Hin-Tak Leung 2020-05-09 20:01:25 +01:00
parent e4f303c31d
commit ea62f5daf1
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ else()
endif()
endif()
find_package_handle_standard_args(FFMPEG
find_package_handle_standard_args(FFmpeg
FOUND_VAR FFMPEG_FOUND
REQUIRED_VARS
FFMPEG_LIBRARIES

View File

@ -5,7 +5,7 @@ find_program(SETCAP_EXECUTABLE
PATHS /bin /usr/bin /sbin /usr/sbin
)
find_package_handle_standard_args(SETCAP DEFAULT_MSG SETCAP_EXECUTABLE)
find_package_handle_standard_args(Setcap DEFAULT_MSG SETCAP_EXECUTABLE)
mark_as_advanced(SETCAP_EXECUTABLE)