qt5base-lts/cmake/FindATSPI2.cmake
Frederik Gladhorn ed487cb00a CMake: Fix detection of AT-SPI-2 on second run
The if around the find logic meant that the module was never shown as
found after the first round.

Change-Id: I3dd47b37baf7c630c54adbce6872b99f9ff56ad0
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2019-09-16 14:47:51 +00:00

8 lines
141 B
CMake

include(FindPkgConfig)
pkg_check_modules(ATSPI2 atspi-2 IMPORTED_TARGET)
if (NOT TARGET PkgConfig::ATSPI2)
set(ATSPI2_FOUND 0)
endif()