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:
parent
46084c59ff
commit
b280905b8c
2 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ if(WIN32)
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
include(FindPkgConfig)
|
find_package(PkgConfig QUIET)
|
||||||
|
|
||||||
if(PKG_CONFIG_FOUND)
|
if(PKG_CONFIG_FOUND)
|
||||||
# FIXME : clean this up once we requrie CMake 3.6
|
# FIXME : clean this up once we requrie CMake 3.6
|
||||||
|
@ -33,5 +33,5 @@ else()
|
||||||
endif(WIN32)
|
endif(WIN32)
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include(FindPackageHandleStandardArgs)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(DBUS DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(DBus DEFAULT_MSG
|
||||||
DBUS_INCLUDE_DIRS DBUS_LIBRARIES)
|
DBUS_INCLUDE_DIRS DBUS_LIBRARIES)
|
|
@ -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})
|
FIND_LIBRARY(LIBEVENT_LIB NAMES event_core PATH_SUFFIXES lib HINTS ${ADDITIONAL_LIBRARY_PATHS})
|
||||||
|
|
||||||
include(FindPackageHandleStandardArgs)
|
include(FindPackageHandleStandardArgs)
|
||||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBEVENT DEFAULT_MSG
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LibEvent DEFAULT_MSG
|
||||||
LIBEVENT_INCLUDE_DIR LIBEVENT_LIB)
|
LIBEVENT_INCLUDE_DIR LIBEVENT_LIB)
|
Loading…
Add table
Reference in a new issue