CMake: FindATSPI2: Ignore repeated attempts to find ATSPI2

Change-Id: I4d6f59d144910d2f194f73e3b9bc8a5cc6726bcd
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Tobias Hunger 2019-04-09 11:30:50 +02:00
parent 511124bf1d
commit f233249207

View File

@ -1,3 +1,5 @@
include(FindPkgConfig)
pkg_check_modules(ATSPI2 atspi-2 IMPORTED_TARGET)
if(NOT TARGET PkgConfig::ATSPI2)
pkg_check_modules(ATSPI2 atspi-2 IMPORTED_TARGET)
endif()