summaryrefslogtreecommitdiffstats
path: root/cmake/FindLibsystemd.cmake
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@qt.io>2019-06-03 11:06:07 +0200
committerSimon Hausmann <simon.hausmann@qt.io>2019-06-03 09:40:14 +0000
commit4c31ce68d5367a6ec4dd3cf2f55e4b226add876d (patch)
treedb192fbd4c61f154fbaa615217fe9d8caffec3f5 /cmake/FindLibsystemd.cmake
parent3966ab8e9f601a9315f19eea1bf24628664d79d9 (diff)
Improve finding of sqlite with vcpkg
We use qt_find_package(SQLite3 PROVIDED_TARGETS SQLite::SQLite3) which intends to find cmake's FindSQLite3.cmake and expects the existence of the corresponding target. However qt_find_package first tries to call find_package in config mode, which does not interact well with vcpkg's sqlite, where sqlite3-config.cmake is provided to support multi-config targets. So that call will appear to succeed, yet the expected targets are not there of course. Therefore this patch adds a sanity check for the target existence and allows for a fallback to the module mode for find_package, in order to find CMake's FindSQLite3.cmake. Change-Id: I660f26c38369c3504df1c590e9d3a51ff1f65c6c Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/FindLibsystemd.cmake')
0 files changed, 0 insertions, 0 deletions