Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-115746

CMake files, generated by the installer have back slashes on Windows. Parsing fails.

    XMLWordPrintable

Details

    • WebAssembly, Windows

    Description

      Perhaps, this is rather a packaging/releasing issue. Feel free to move it.

      When configuring certain projects with Qt 6.5.2 for WASM, it fails with this error message:

        Syntax error in cmake code at
      
          C:/Qt/6.5.2/wasm_singlethread/lib/cmake/Qt6BuildInternals/QtBuildInternalsExtra.cmake:45
      
        when parsing string
      
          C:\Qt
      
        Invalid character escape '\Q'.
      

      The string has back slashes:

          set(qtbi_orig_prefix "C:\Qt")
          set(qtbi_orig_staging_prefix "C:\Qt\6.5.2\wasm_singlethread")
      

      Changing them to forward slashes helps CMake parsing the file correctly.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              releaseteam Qt Release Team
              portale Alessandro Portale
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes