cmake: fix warning when searching for SKIQ

Replace INCLUDE(FindPkgConfig) by FIND_PACKAGE(PkgConfig REQUIRED)
to avoid following warning:

warning: The package name passed to `find_package_handle_standard_args` (PkgConfig) does not match the name of the calling package (SKIQ).  This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern.
master
Robert Falkenberg 3 years ago
parent f57cf0b195
commit 21cb5858f0

@ -6,7 +6,7 @@
# the distribution. # the distribution.
# #
INCLUDE(FindPkgConfig) FIND_PACKAGE(PkgConfig REQUIRED)
#PKG_CHECK_MODULES(SKIQ SKIQ) #PKG_CHECK_MODULES(SKIQ SKIQ)
IF(NOT SKIQ_FOUND) IF(NOT SKIQ_FOUND)
@ -14,7 +14,7 @@ FIND_PATH(
SKIQ_INCLUDE_DIRS SKIQ_INCLUDE_DIRS
NAMES sidekiq_api.h NAMES sidekiq_api.h
HINTS $ENV{SKIQ_DIR}/inc HINTS $ENV{SKIQ_DIR}/inc
$ENV{SKIQ_DIR}/sidekiq_core/inc $ENV{SKIQ_DIR}/sidekiq_core/inc
PATHS /usr/local/include PATHS /usr/local/include
/usr/include /usr/include
) )

Loading…
Cancel
Save