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

Environment variables in cmake presets are not propagated to the Run environment

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 17.0.0
    • None
    • Linux/Other display system
    • de0ccd428 (master)

      The cmake presets support an "environment" section.  Qt Creator correctly sets these in the Configure and Build stages.

      However, the environment variables are not propagated to the environment in the Run stage, even though the Run environment specifies the Build environment as the base (by default).

        1. image-2025-08-13-11-25-15-589.png
          7 kB
          Richard Hazlewood
        2. image-2025-08-13-11-26-21-488.png
          7 kB
          Richard Hazlewood
        3. qtc_cmake_env_var.tgz
          10 kB
          Richard Hazlewood
        4. qtc_cmake_env_var-2025-08-13_09.49.17.mp4
          1.36 MB
          Richard Hazlewood
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            cadam Cristian Adam
            chardrazle Richard Hazlewood
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes