[Qt-creator] Disable shadow build permanently for a project.

Konstantin Tokarev annulen at yandex.ru
Tue Sep 24 11:57:01 CEST 2013



24.09.2013, 13:51, "Frédéric Marchal" <frederic.marchal at wowtechnology.com>:
>>  24.09.2013, 12:56, "Frédéric Marchal" <frederic.marchal at wowtechnology.com>:
>>>>   24.09.2013, 05:14, "Joseph Crowell" <joseph.w.crowell at gmail.com>:
>>>>>   Is there a config that can be added to the .pro file or something that
>>>>>   can be uploaded to git which would automatically disable shadow
>>>>>  building on fresh clones of a project? I have a project with data
>>>>>  files in the run folder and a version tool which runs on each compile
>>>>>  to generate a version header. Both of these things break when using
>>>>>  shadow builds. In cases like this it would be nice to be able to
>>>>>  disable shadow build on a project level. I don't think I am the only
>>>>>  Qt Creator user that would like this. It would eliminate a bit of
>>>>>  instruction from our wiki as well.
>>>>   All generated files should be placed into build directory.
>>>  The problem is about manually constructed files.
>>>
>>>  The files can be dynamically loaded images, lists of messages, I/O
>>>  mapping files, and so on.
>>  Since your executable is in build directory, there should be no problem.
>
> The manually created files are in the source directory. There lies the
> problem.

Why are they created there?

Anyway, if you first build with qmake and then import build into Qt Creator (like I do),
you won't get shadow build accidentally.

-- 
Regards,
Konstantin



More information about the Qt-creator mailing list