1
0
Fork 0

Fix CMake 5.17+ FPHSA warning

Starting with CMake 5.17 FindPackageHandleStandardArgs is detecting package name mismatches. Also capitalization is checked. 
See: ee4673c1ae
This commit is contained in:
Lars Toenning 2020-06-15 22:03:08 +02:00 committed by James Turner
parent 46084c59ff
commit b280905b8c
2 changed files with 3 additions and 3 deletions

View file

@ -16,7 +16,7 @@ if(WIN32)
)
endif()
else()
include(FindPkgConfig)
find_package(PkgConfig QUIET)
if(PKG_CONFIG_FOUND)
# FIXME : clean this up once we requrie CMake 3.6
@ -33,5 +33,5 @@ else()
endif(WIN32)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(DBUS DEFAULT_MSG
FIND_PACKAGE_HANDLE_STANDARD_ARGS(DBus DEFAULT_MSG
DBUS_INCLUDE_DIRS DBUS_LIBRARIES)

View file

@ -8,5 +8,5 @@ FIND_PATH(LIBEVENT_INCLUDE_DIR event2/event.h PATH_SUFFIXES include HINTS ${ADDI
FIND_LIBRARY(LIBEVENT_LIB NAMES event_core PATH_SUFFIXES lib HINTS ${ADDITIONAL_LIBRARY_PATHS})
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBEVENT DEFAULT_MSG
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibEvent DEFAULT_MSG
LIBEVENT_INCLUDE_DIR LIBEVENT_LIB)