diff options
author | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2019-09-16 16:23:39 +0200 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2019-09-16 14:47:51 +0000 |
commit | ed487cb00a5f08f32459aa602a38e3258f016561 (patch) | |
tree | 1fd4ab3dfbff0bf68d5851bcacc854d6d2e90311 /cmake/FindATSPI2.cmake | |
parent | 59b940ff418cf4c134face2a3c56a593bd75d5ca (diff) |
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>
Diffstat (limited to 'cmake/FindATSPI2.cmake')
-rw-r--r-- | cmake/FindATSPI2.cmake | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cmake/FindATSPI2.cmake b/cmake/FindATSPI2.cmake index 87e3838ee9..ca0045635b 100644 --- a/cmake/FindATSPI2.cmake +++ b/cmake/FindATSPI2.cmake @@ -1,8 +1,7 @@ include(FindPkgConfig) -if(NOT TARGET PkgConfig::ATSPI2) - pkg_check_modules(ATSPI2 atspi-2 IMPORTED_TARGET) - if (NOT TARGET PkgConfig::ATSPI2) - set(ATSPI2_FOUND 0) - endif() +pkg_check_modules(ATSPI2 atspi-2 IMPORTED_TARGET) + +if (NOT TARGET PkgConfig::ATSPI2) + set(ATSPI2_FOUND 0) endif() |