diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-09-27 13:50:29 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2019-09-27 14:30:23 +0000 |
commit | fe1a018d000336708243af0baff2e3822aff0894 (patch) | |
tree | 25557833f96659647f4887a19a8c9c8edcf6f04c /cmake/FindWrapDBus1.cmake | |
parent | 34b1c1c23cbddf67f878579bee9d10dcac29d8ca (diff) |
Fix some find modules not setting _FOUND variable
If the target exists or the find_package() call succeeds
we still need to set _FOUND to 1.
Change-Id: Ib2267c30580082dcc177ab21708a3bc5dbde974f
Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
Reviewed-by: Qt CMake Build Bot
Diffstat (limited to 'cmake/FindWrapDBus1.cmake')
-rw-r--r-- | cmake/FindWrapDBus1.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/FindWrapDBus1.cmake b/cmake/FindWrapDBus1.cmake index 42349a8b1a..c2668d6cc8 100644 --- a/cmake/FindWrapDBus1.cmake +++ b/cmake/FindWrapDBus1.cmake @@ -29,3 +29,7 @@ if(DEFINED __qt_dbus_pcl) else() unset(ENV{PKG_CONFIG_LIBDIR}) endif() + +if(DBus1_FOUND) + set(WrapDBus1_FOUND 1) +endif() |