Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-30147

ERROR_VARIABLE from execute_process is not working as expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P2: Important
    • None
    • Qt Creator 12.0.0, Qt Creator 12.0.2
    • None
    • Linux/Other display system, macOS
    • 7aa57249b (12.0)

    Description

      Beginning from version 12, my CMake project is not working  as expected anymore. 

      I have a CMake script file "myScript.cmake" that I run with execute_process, and then I parse the output, which results in a list of files: "myFile1.h;myFile1.cpp"

      The list is parsed correctly in all of the versions before 12 and the LENGTH function returns 2, but in the latest version, it returns 1.

      This is the console output in QtCreator  12:

      This is the output of any older version:

      Tested on macOS and Linux.

      Attachments

        1. image-2023-12-28-14-02-34-657.png
          10 kB
          Vladyslav Kostiushko
        2. image-2023-12-28-14-03-32-529.png
          9 kB
          Vladyslav Kostiushko
        3. qtcreator-12.0.1-clicolor_force.png
          69 kB
          Cristian Adam
        4. qtcreator-12.0.1-cmake-error-variable.png
          81 kB
          Cristian Adam
        5. QtCreatorCMakeListBug.zip
          0.8 kB
          Vladyslav Kostiushko
        6. Screenshot from 2024-01-04 12-09-11.png
          176 kB
          Jarek Kobus
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            cadam Cristian Adam
            vlad.kostiushko Vladyslav Kostiushko
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes