diff options
author | Cristian Adam <cristian.adam@qt.io> | 2019-06-05 11:45:23 +0200 |
---|---|---|
committer | Cristian Adam <cristian.adam@qt.io> | 2019-06-05 09:54:52 +0000 |
commit | 37467028bb07c14311ac2cf9741c274d5b44b388 (patch) | |
tree | 17b660f2d1138654a9396d9f07f3f5da7f046c43 /cmake | |
parent | ddd7af87ef33eb865ecce5fc38f76913405d6e6f (diff) |
CMake: Fix qt_find_package PROVIDED_TARGETS check
Change-Id: Ia551dcbca2d881f8bac36158abb0ac60b79f16f0
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtBuild.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index 1b521e9a24..3b2079fbdf 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -2077,6 +2077,7 @@ macro(qt_find_package) # qt_find_package(SQLite3) call it is our intention to use the cmake package # in module mode. if (${ARGV0}_FOUND AND arg_PROVIDED_TARGETS) + unset(any_target_found) foreach(expected_target ${arg_PROVIDED_TARGETS}) if (TARGET ${expected_target}) set(any_target_found TRUE) @@ -2084,7 +2085,7 @@ macro(qt_find_package) endif() endforeach() if(NOT any_target_found) - set(${ARGV0}_FOUND) + unset(${ARGV0}_FOUND) endif() endif() endif() |