375831a3dc
This reduces the amount of warning messages when the pkg-config feature is disabled. Task-number: QTBUG-85276 Change-Id: I11a6dfb6273a1e48c47d1ef5c1a5f70ba990fbc0 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
12 lines
241 B
CMake
12 lines
241 B
CMake
find_package(PkgConfig QUIET)
|
|
|
|
if(NOT TARGET PkgConfig::XRender)
|
|
pkg_check_modules(XRender xrender IMPORTED_TARGET)
|
|
|
|
if (NOT TARGET PkgConfig::XRender)
|
|
set(XRender_FOUND 0)
|
|
endif()
|
|
else()
|
|
set(XRender_FOUND 1)
|
|
endif()
|