diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2019-04-09 11:30:50 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2019-04-09 11:14:12 +0000 |
commit | f233249207441d173565364ff04a7adc8d010c97 (patch) | |
tree | 9aebf45394ca4c9a58f1ef4c44c858af52200bcb /cmake/FindATSPI2.cmake | |
parent | 511124bf1d297f8561cbca3b768ef24a12eb36cb (diff) |
CMake: FindATSPI2: Ignore repeated attempts to find ATSPI2
Change-Id: I4d6f59d144910d2f194f73e3b9bc8a5cc6726bcd
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/FindATSPI2.cmake')
-rw-r--r-- | cmake/FindATSPI2.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmake/FindATSPI2.cmake b/cmake/FindATSPI2.cmake index eb87a33e84..4e1ade0d07 100644 --- a/cmake/FindATSPI2.cmake +++ b/cmake/FindATSPI2.cmake @@ -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() |