summaryrefslogtreecommitdiffstats
path: root/cmake/FindATSPI2.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindATSPI2.cmake')
-rw-r--r--cmake/FindATSPI2.cmake4
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()