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. Passing c++ flag in qbs (Solved)

Passing c++ flag in qbs (Solved)

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 735 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.
  • N Offline
    N Offline
    nikta
    wrote on last edited by
    #1

    Sorry if it is not the right place. I need to know how to pass -std=c++0x to my qbs project.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alex312
      wrote on last edited by
      #2

      @ cpp.cxxFlags:{
      var flags = base
      if(cpp.compilerName.contains("g++"))
      flags = flags.concat(["-std=gnu++11"])
      return flags
      }@

      1 Reply Last reply
      0

      • Login

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