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. How to turn "shadow build" off in the *.pro file?
Forum Updated to NodeBB v4.3 + New Features

How to turn "shadow build" off in the *.pro file?

Scheduled Pinned Locked Moved Qt Creator and other tools
4 Posts 3 Posters 4.2k 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.
  • _ Offline
    _ Offline
    _Dima
    wrote on last edited by
    #1

    Could you please advise how to turn "shadow build" off using *.pro file only (without *.user file and without using QtCreator before).

    Some details:
    There is some project file, it's placed in the source control system and several developers use it (.pro file).
    We need to place our build directories in the specific place which is a relative to the project directory.
    It's needed for copying of the output files (exe, dll etc) to the install directory after project linking.
    So I want to turn "shadow build" off. Then build directories will be placed in the project directory.
    (!) I cannot use DESTDIR param for redirection of the output files (exe, app, dll), because together with them are redirected extra files (
    .ilk, *.manifest etc)

    Thank you for any help!

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      It's not a pro file feature, you need to turn it off when you configure your project in Qt Creator.

      Otherwise from the command line, just run qmake inside your source folder.

      Hope it helps

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • _ Offline
        _ Offline
        _Dima
        wrote on last edited by
        #3

        Sorry, It's so bad news... I cannot force all developers to set the specific build directories...

        Can I determine build directory? Is there any param which provides build directory path?

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andreyc
          wrote on last edited by
          #4

          Take a look on "OUT_PWD":https://qt-project.org/doc/qt-5/qmake-variable-reference.html#out-pwd variable

          "Specifies the full path leading to the directory where qmake places the generated Makefile."

          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