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
This commit is contained in:
Alexandru Croitor 2019-09-27 13:50:29 +02:00
parent 34b1c1c23c
commit fe1a018d00
2 changed files with 6 additions and 0 deletions

View File

@ -29,3 +29,7 @@ if(DEFINED __qt_dbus_pcl)
else() else()
unset(ENV{PKG_CONFIG_LIBDIR}) unset(ENV{PKG_CONFIG_LIBDIR})
endif() endif()
if(DBus1_FOUND)
set(WrapDBus1_FOUND 1)
endif()

View File

@ -6,4 +6,6 @@ if(NOT TARGET PkgConfig::XRender)
if (NOT TARGET PkgConfig::XRender) if (NOT TARGET PkgConfig::XRender)
set(XRender_FOUND 0) set(XRender_FOUND 0)
endif() endif()
else()
set(XRender_FOUND 1)
endif() endif()