From 21cb5858f04e1ea5cdd9dc4071a1fcd61a71788e Mon Sep 17 00:00:00 2001 From: Robert Falkenberg Date: Wed, 9 Mar 2022 12:05:53 +0100 Subject: [PATCH] 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. --- cmake/modules/FindSKIQ.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/modules/FindSKIQ.cmake b/cmake/modules/FindSKIQ.cmake index 45555a676..764ccfcf2 100644 --- a/cmake/modules/FindSKIQ.cmake +++ b/cmake/modules/FindSKIQ.cmake @@ -6,7 +6,7 @@ # the distribution. # -INCLUDE(FindPkgConfig) +FIND_PACKAGE(PkgConfig REQUIRED) #PKG_CHECK_MODULES(SKIQ SKIQ) IF(NOT SKIQ_FOUND) @@ -14,7 +14,7 @@ FIND_PATH( SKIQ_INCLUDE_DIRS NAMES sidekiq_api.h HINTS $ENV{SKIQ_DIR}/inc - $ENV{SKIQ_DIR}/sidekiq_core/inc + $ENV{SKIQ_DIR}/sidekiq_core/inc PATHS /usr/local/include /usr/include )