1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-24 19:59:47 +08:00

FindSQLite3: Guard calls to pkg_check_modules

This was missed in commit 25b947589a (Modules: Guard calls to
pkg_check_modules, 2024-08-07, v3.31.0-rc1~236^2).
This commit is contained in:
Peter Kokot
2024-11-09 18:43:25 +01:00
committed by Brad King
parent e22c8383b9
commit 674a987898

View File

@@ -36,7 +36,9 @@ cmake_policy(PUSH)
cmake_policy(SET CMP0159 NEW) # file(STRINGS) with REGEX updates CMAKE_MATCH_<n> cmake_policy(SET CMP0159 NEW) # file(STRINGS) with REGEX updates CMAKE_MATCH_<n>
find_package(PkgConfig QUIET) find_package(PkgConfig QUIET)
if(PKG_CONFIG_FOUND)
pkg_check_modules(PC_SQLite3 QUIET sqlite3) pkg_check_modules(PC_SQLite3 QUIET sqlite3)
endif()
# Look for the necessary header # Look for the necessary header
find_path(SQLite3_INCLUDE_DIR NAMES sqlite3.h find_path(SQLite3_INCLUDE_DIR NAMES sqlite3.h