Skip to content

Commit 4a0f724

Browse files
committed
Replace PKG_CONFIG_FOUND with PkgConfig_FOUND
PkgConfig_FOUND is more logical result variable when using find_package() although not yet documented upstream. This also removes redundant comments for pkg-config as this is a standard part of find modules where pkg-config can find packages.
1 parent 3cb4c4d commit 4a0f724

34 files changed

+38
-71
lines changed

cmake/cmake/modules/FindACL.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,8 @@ if(ACL_IS_BUILT_IN)
157157
else()
158158
set(_ACL_REQUIRED_VARS ACL_LIBRARY ACL_INCLUDE_DIR)
159159

160-
# Try pkg-config.
161160
find_package(PkgConfig QUIET)
162-
if(PKG_CONFIG_FOUND)
161+
if(PkgConfig_FOUND)
163162
pkg_check_modules(PC_ACL QUIET libacl)
164163
endif()
165164

cmake/cmake/modules/FindApache.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,8 @@ if(Apache_APR_CONFIG_EXECUTABLE)
198198
)
199199
endif()
200200

201-
# Try pkg-config.
202201
find_package(PkgConfig QUIET)
203-
if(PKG_CONFIG_FOUND)
202+
if(PkgConfig_FOUND)
204203
pkg_check_modules(PC_Apache_APR QUIET apr-1)
205204
endif()
206205

cmake/cmake/modules/FindAppArmor.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ set_package_properties(
4848

4949
set(_reason "")
5050

51-
# Try pkg-config.
5251
find_package(PkgConfig QUIET)
53-
if(PKG_CONFIG_FOUND)
52+
if(PkgConfig_FOUND)
5453
pkg_check_modules(PC_AppArmor QUIET libapparmor)
5554
endif()
5655

cmake/cmake/modules/FindArgon2.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ set_package_properties(
4848

4949
set(_reason "")
5050

51-
# Try pkg-config.
5251
find_package(PkgConfig QUIET)
53-
if(PKG_CONFIG_FOUND)
52+
if(PkgConfig_FOUND)
5453
pkg_check_modules(PC_Argon2 QUIET libargon2)
5554
endif()
5655

cmake/cmake/modules/FindCapstone.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ set_package_properties(
4646

4747
set(_reason "")
4848

49-
# Try pkg-config.
5049
find_package(PkgConfig QUIET)
51-
if(PKG_CONFIG_FOUND)
50+
if(PkgConfig_FOUND)
5251
pkg_check_modules(PC_Capstone QUIET capstone)
5352
endif()
5453

cmake/cmake/modules/FindCdb.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ set_package_properties(
4848

4949
set(_reason "")
5050

51-
# Try pkg-config.
5251
find_package(PkgConfig QUIET)
53-
if(PKG_CONFIG_FOUND)
52+
if(PkgConfig_FOUND)
5453
pkg_check_modules(PC_Cdb QUIET libcdb)
5554
endif()
5655

cmake/cmake/modules/FindCrypt.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,8 @@ if(Crypt_IS_BUILT_IN)
9696
else()
9797
set(_Crypt_REQUIRED_VARS Crypt_LIBRARY Crypt_INCLUDE_DIR _Crypt_SANITY_CHECK)
9898

99-
# Try pkg-config.
10099
find_package(PkgConfig QUIET)
101-
if(PKG_CONFIG_FOUND)
100+
if(PkgConfig_FOUND)
102101
pkg_search_module(PC_Crypt QUIET libcrypt libxcrypt)
103102
endif()
104103

cmake/cmake/modules/FindEditline.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ set_package_properties(
4848

4949
set(_reason "")
5050

51-
# Try pkg-config.
5251
find_package(PkgConfig QUIET)
53-
if(PKG_CONFIG_FOUND)
52+
if(PkgConfig_FOUND)
5453
pkg_check_modules(PC_Editline QUIET libedit)
5554
endif()
5655

cmake/cmake/modules/FindEnchant.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ set_package_properties(
4949

5050
set(_reason "")
5151

52-
# Try pkg-config.
5352
find_package(PkgConfig QUIET)
54-
if(PKG_CONFIG_FOUND)
53+
if(PkgConfig_FOUND)
5554
pkg_search_module(PC_Enchant QUIET enchant-2 enchant)
5655
endif()
5756

cmake/cmake/modules/FindFFI.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ set_package_properties(
4646

4747
set(_reason "")
4848

49-
# Try pkg-config.
5049
find_package(PkgConfig QUIET)
51-
if(PKG_CONFIG_FOUND)
50+
if(PkgConfig_FOUND)
5251
pkg_check_modules(PC_FFI QUIET libffi)
5352
endif()
5453

0 commit comments

Comments
 (0)