diff options
Diffstat (limited to 'cmake/QtCreatorAPI.cmake')
-rw-r--r-- | cmake/QtCreatorAPI.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake index 7e6ba81f30..4e8fe200b4 100644 --- a/cmake/QtCreatorAPI.cmake +++ b/cmake/QtCreatorAPI.cmake @@ -895,7 +895,7 @@ function(add_qtc_test name) cmake_parse_arguments(_arg "GTEST" "" "DEFINES;DEPENDS;INCLUDES;SOURCES" ${ARGN}) foreach(dependency ${_arg_DEPENDS}) - if (NOT TARGET &{dependency}) + if (NOT TARGET dependency AND NOT _arg_GTEST) return() endif() endforeach() |