diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index 6fc4cc0b6fe..5a604a0c447 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -2127,7 +2127,7 @@ function(qt_watch_current_list_dir variable access value current_list_file stack message(FATAL_ERROR "qt_watch_current_list_dir doesn't know about ${func}. Consider adding it.") endif() else() - cmake_command(INVOKE ${func} ${a1} ${a2} ${a3} ${a4} ${a5} ${a6} ${a7} ${a8} ${a9}) + cmake_language(CALL ${func} ${a1} ${a2} ${a3} ${a4} ${a5} ${a6} ${a7} ${a8} ${a9}) endif() list(REMOVE_AT files ${i}) list(REMOVE_AT funcs ${i})