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. Show build kit at runtime
QtWS25 Last Chance

Show build kit at runtime

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
c++buildruntime
2 Posts 2 Posters 336 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.
  • H Offline
    H Offline
    harveyab
    wrote on 25 Dec 2022, 23:48 last edited by
    #1

    Is there a way to determine what build kit was used so I can identify it at runtime?
    I would like to show it in debug output and/or use it for conditional compilation.

    J 1 Reply Last reply 26 Dec 2022, 09:06
    0
    • H harveyab
      25 Dec 2022, 23:48

      Is there a way to determine what build kit was used so I can identify it at runtime?
      I would like to show it in debug output and/or use it for conditional compilation.

      J Offline
      J Offline
      JonB
      wrote on 26 Dec 2022, 09:06 last edited by
      #2

      @harveyab said in Show build kit at runtime:

      use it for conditional compilation

      If you want to use it for this you will need to know at compile-time, not at runtime.

      Assuming (I don't know but would guess) that you cannot access the particular kit selected in Creator I would expect to have to test for compile-time defines which come from the kit chosen, e.g. compiler version like _MSC_VER.

      1 Reply Last reply
      0

      1/2

      25 Dec 2022, 23:48

      • Login

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