diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake index 8647bd49cf8..5579936c16f 100644 --- a/cmake/QtCreatorAPI.cmake +++ b/cmake/QtCreatorAPI.cmake @@ -991,7 +991,7 @@ function(add_qtc_test name) endfunction() function(finalize_qtc_gtest test_name) - if (NOT TARGET test_name) + if (NOT TARGET ${test_name}) return() endif() get_target_property(test_sources ${test_name} SOURCES)