mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 02:59:22 -05:00
Merge topic 'FindSQLite3-pkg-config'
2d228201fcHelp: Guard calls to pkg_check_modules in cmake-developer(7) example674a987898FindSQLite3: Guard calls to pkg_check_modules Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9983
This commit is contained in:
@@ -36,7 +36,9 @@ cmake_policy(PUSH)
|
||||
cmake_policy(SET CMP0159 NEW) # file(STRINGS) with REGEX updates CMAKE_MATCH_<n>
|
||||
|
||||
find_package(PkgConfig QUIET)
|
||||
pkg_check_modules(PC_SQLite3 QUIET sqlite3)
|
||||
if(PKG_CONFIG_FOUND)
|
||||
pkg_check_modules(PC_SQLite3 QUIET sqlite3)
|
||||
endif()
|
||||
|
||||
# Look for the necessary header
|
||||
find_path(SQLite3_INCLUDE_DIR NAMES sqlite3.h
|
||||
|
||||
Reference in New Issue
Block a user