diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index 8c4c12d5939..b06dec60d88 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -273,9 +273,9 @@ function(qt_internal_generate_tool_command_wrapper) set(bindir "${QT_BUILD_INTERNALS_RELOCATABLE_INSTALL_PREFIX}/${INSTALL_BINDIR}") file(TO_NATIVE_PATH "${bindir}" bindir) set(tool_command_wrapper_path "${QT_BUILD_DIR}/${INSTALL_LIBEXECDIR}/qt_setup_tool_path.bat") - configure_file("${QT_CMAKE_DIR}/qt_setup_tool_path.bat.in" - "${tool_command_wrapper_path}" @ONLY - NEWLINE_STYLE WIN32) + file(WRITE "${tool_command_wrapper_path}" "@echo off +set PATH=${bindir};%PATH% +%*") set(QT_TOOL_COMMAND_WRAPPER_PATH "${tool_command_wrapper_path}" CACHE INTERNAL "Path to the wrapper of the tool commands") set_property(GLOBAL PROPERTY _qt_internal_generate_tool_command_wrapper_called TRUE) diff --git a/cmake/qt_setup_tool_path.bat.in b/cmake/qt_setup_tool_path.bat.in deleted file mode 100644 index a9cea5ad427..00000000000 --- a/cmake/qt_setup_tool_path.bat.in +++ /dev/null @@ -1,3 +0,0 @@ -@echo off -set PATH=@bindir@;%PATH% -%*