diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-09-14 11:10:51 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2022-10-28 13:59:24 +0200 |
commit | b56f34ca6c24e440174c3c249594914cb470731b (patch) | |
tree | fc5c1dd65754e7802a7795310e9e25821dd981c5 /tests/auto | |
parent | 22126ae76d27bc29acdbd3f9d2b877fffa39c7d9 (diff) |
CMake: Use new _qt_internal_get_tool_wrapper_script_path
Pick-to: 6.4
Change-Id: I3c8422f4568fc60cf6cd3c247e008cacdcb18249
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/scion/CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/auto/scion/CMakeLists.txt b/tests/auto/scion/CMakeLists.txt index 048e851..423a8f9 100644 --- a/tests/auto/scion/CMakeLists.txt +++ b/tests/auto/scion/CMakeLists.txt @@ -82,8 +82,8 @@ set(scxmls_dir ../../3rdparty/scion-tests/scxml-test-framework/test) get_filename_component(scxmls_dir ${scxmls_dir} ABSOLUTE) file(GLOB_RECURSE allscxmls ${scxmls_dir}/*.scxml) -_qt_internal_wrap_tool_command(qscxmlc_command SET - "$<TARGET_FILE:${QT_CMAKE_EXPORT_NAMESPACE}::qscxmlc>") +_qt_internal_get_tool_wrapper_script_path(tool_wrapper) +set(qscxmlc_bin "${tool_wrapper}" "$<TARGET_FILE:${QT_CMAKE_EXPORT_NAMESPACE}::qscxmlc>") set(scxmls) set(inc_list) @@ -114,7 +114,8 @@ foreach(f ${allscxmls}) file(TO_NATIVE_PATH ${out_cpp} native_out_cpp) add_custom_command( OUTPUT ${out_cpp} ${out_h} - ${qscxmlc_command} --header ${native_out_h} --impl ${native_out_cpp} + COMMAND + ${qscxmlc_bin} --header ${native_out_h} --impl ${native_out_cpp} --namespace ${sn} --classname ${cn} ${f} DEPENDS ${QT_CMAKE_EXPORT_NAMESPACE}::qscxmlc VERBATIM |