diff --git a/cmake/ECM/modules/ECMQueryQt.cmake b/cmake/ECM/modules/ECMQueryQt.cmake index 98eb50089e..3f3b86b46c 100644 --- a/cmake/ECM/modules/ECMQueryQt.cmake +++ b/cmake/ECM/modules/ECMQueryQt.cmake @@ -94,7 +94,7 @@ function(ecm_query_qt result_variable qt_variable) file(TO_CMAKE_PATH "${output}" output_path) set(${result_variable} "${output_path}" PARENT_SCOPE) else() - message(WARNING "Failed call: ${_command} \"${qt_variable}\"") + message(WARNING "Failed call: ${QUERY_EXECUTABLE} ${_cli_option} ${qt_variable}") message(FATAL_ERROR "${_exec_name_text} call failed: ${return_code}") endif() endfunction()