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

        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