diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-09-14 11:21:03 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-10-28 13:09:35 +0200 |
commit | a617b92d60c073a2d5ac89da73f73b9a0a309154 (patch) | |
tree | 3db4f813f76fd356715d329ec557907faf613eda | |
parent | 95b7ea1d57c58863e809f67d3c56aa31a8c050c1 (diff) | |
download | qtactiveqt-a617b92d60c073a2d5ac89da73f73b9a0a309154.tar.gz |
CMake: Use new _qt_internal_get_tool_wrapper_script_path
Pick-to: 6.4
Change-Id: Ic62239033a5a291b7b33b2add460089e4302b8f2
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
-rw-r--r-- | src/activeqt/control/Qt6AxServerMacros.cmake | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/src/activeqt/control/Qt6AxServerMacros.cmake b/src/activeqt/control/Qt6AxServerMacros.cmake index 5590517..0674df2 100644 --- a/src/activeqt/control/Qt6AxServerMacros.cmake +++ b/src/activeqt/control/Qt6AxServerMacros.cmake @@ -55,14 +55,19 @@ function(qt6_target_idl target) set(output_idl "${CMAKE_CURRENT_BINARY_DIR}/${target}$<CONFIG>.idl") set(output_tlb "${CMAKE_CURRENT_BINARY_DIR}/${target}$<CONFIG>.tlb") + _qt_internal_get_tool_wrapper_script_path(tool_wrapper) set(tlb_command_list "") - _qt_internal_wrap_tool_command(tlb_command_list APPEND - "$<TARGET_FILE:${QT_CMAKE_EXPORT_NAMESPACE}::idc>" "$<TARGET_FILE:${target}>" - /idl "${output_idl}" -version 1.0 + + list(APPEND tlb_command_list + COMMAND + "${tool_wrapper}" + "$<TARGET_FILE:${QT_CMAKE_EXPORT_NAMESPACE}::idc>" "$<TARGET_FILE:${target}>" + /idl "${output_idl}" -version 1.0 ) - _qt_internal_wrap_tool_command(tlb_command_list APPEND - midl "${output_idl}" /nologo /tlb "${output_tlb}" + list(APPEND tlb_command_list + COMMAND + "${tool_wrapper}" midl "${output_idl}" /nologo /tlb "${output_tlb}" ) set(rc_files "$<FILTER:$<TARGET_PROPERTY:${target},SOURCES>,INCLUDE,\\.rc$>") @@ -71,14 +76,17 @@ function(qt6_target_idl target) $<TARGET_FILE:${target}>$<SEMICOLON>/tlb$<SEMICOLON>${output_tlb}") set(no_rc_cmd "echo \"No rc-file linked into project. The type library of the ${target} \ target will be a separate file.\"") - _qt_internal_wrap_tool_command(tlb_command_list APPEND - "$<IF:${have_rc_files},${rc_cmd},${no_rc_cmd}>" + list(APPEND tlb_command_list + COMMAND + "${tool_wrapper}" "$<IF:${have_rc_files},${rc_cmd},${no_rc_cmd}>" ) if(NOT arg_NO_AX_SERVER_REGISTRATION AND NOT QT_NO_AX_SERVER_REGISTRATION) - _qt_internal_wrap_tool_command(tlb_command_list APPEND - "$<TARGET_FILE:${QT_CMAKE_EXPORT_NAMESPACE}::idc>" - "$<TARGET_FILE:${target}>" /regserver + list(APPEND tlb_command_list + COMMAND + "${tool_wrapper}" + "$<TARGET_FILE:${QT_CMAKE_EXPORT_NAMESPACE}::idc>" + "$<TARGET_FILE:${target}>" /regserver ) endif() add_custom_command(TARGET ${target} POST_BUILD |