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:
parent
34b1c1c23c
commit
fe1a018d00
@ -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()
|
||||||
|
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user