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. Prevent multiple calling of QMake and build scope
Qt 6.11 is out! See what's new in the release blog

Prevent multiple calling of QMake and build scope

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 1 Posters 905 Views 1 Watching
  • 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.
  • M Offline
    M Offline
    mbnoimi
    wrote on last edited by
    #1

    Hello,

    I want to configure my project to call some batch file only in case I set the build of project as "Release" (I shown below) but I noticed that Qt Creator calls QMake three times.

    How can I make Qt Creator call QMake only one time?

    Even if I select Qt Creator to build my project in "Debug" mode Qt Creator calls the batch file although I set the condition to be run just under release mode!

    How can I make Qt Creator call batch file only in "Release" mode?

    [code]QT += core gui

    greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

    TARGET = BuildUsingQmake
    TEMPLATE = app

    SOURCES += main.cpp
    mainwindow.cpp

    HEADERS += mainwindow.h

    FORMS += mainwindow.ui

    CONFIG(release, debug|release) {
    system('create-distro.bat "$$QT_PATH" "$$PG_PATH"')
    }[/code]

    P.S. I'm using:

    • Qt Creator 3.1.2 (opensource)
    • Qt 5.3.1 (opensource)
    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbnoimi
      wrote on last edited by
      #2

      May I get some help guys?

      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