Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Solved using Environment vars in build params?

    Tools
    1
    2
    156
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      davecotter last edited by davecotter

      On Windows, I go to the menu bar and pick Tools -> Options… -> Kits, i select my Kit, then next to "Environment" i click "Change", then enter these values:

      env_vars.png

      Then in my project, i click the "Projects" button, then click "Build", and i check "shadow build", then in "Build Directory" i put this line:

      build_dir.png

      However, when i look below under "Build Steps", next to "Make", which should show the resolved path, i see this:

      not_resolved.png

      and indeed, it builds to that (wrong) path. the path should end with "…\CFTest\win_64-CFTest"

      What am i missing?

      1 Reply Last reply Reply Quote 0
      • D
        davecotter last edited by davecotter

        the solution is to use this:

        %{ActiveProject:BuildConfig:Env:OS_NAME_SHORT}
        
        1 Reply Last reply Reply Quote 1
        • D
          davecotter last edited by davecotter

          the solution is to use this:

          %{ActiveProject:BuildConfig:Env:OS_NAME_SHORT}
          
          1 Reply Last reply Reply Quote 1
          • First post
            Last post