Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. using Environment vars in build params?
QtWS25 Last Chance

using Environment vars in build params?

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
2 Posts 1 Posters 318 Views
  • 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 Offline
    D Offline
    davecotter
    wrote on last edited by davecotter
    #1

    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
    0
    • D Offline
      D Offline
      davecotter
      wrote on last edited by davecotter
      #2

      the solution is to use this:

      %{ActiveProject:BuildConfig:Env:OS_NAME_SHORT}
      
      1 Reply Last reply
      1

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved