CMake Build: Rename cmake_command to cmake_language

The function name has been changed upstream (3.18).

Change-Id: I76a26cdc8de71dffa5402a7c7423006a7a01552e
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Cristian Adam 2020-05-28 16:06:44 +02:00
parent c83a9bfb9a
commit 0ea99a68f9

View File

@ -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.") message(FATAL_ERROR "qt_watch_current_list_dir doesn't know about ${func}. Consider adding it.")
endif() endif()
else() 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() endif()
list(REMOVE_AT files ${i}) list(REMOVE_AT files ${i})
list(REMOVE_AT funcs ${i}) list(REMOVE_AT funcs ${i})