[Qt-creator] CMake builds vs qmake builds

Lincoln Ramsay lincoln.ramsay at nokia.com
Fri Apr 20 02:25:23 CEST 2012


On 04/20/2012 10:19 AM, ext Coda Highland wrote:
>> Traditionally, qmake was much better at this than it is now. Or at least
>> it seemed to be.
>
> It's purely an issue of SEEMING to be. In-tree builds do work for a
> good number of projects, but you start bumping into problems -- for
> example, switching between debug and release and getting the object
> files mixed up. Shadow builds are safer in general.

This whole discussion is about shadow builds :)

There's a very real limitation in qmake though where the number of 
slashes in the source and builds trees must be the same or some things 
break.

Creator tries to enforce this by making shadow builds sit next to the 
source tree.

Some of us don't care (or aren't hit by) these qmake limitations and 
want to put the build tree inside the source tree. Not an in-source 
build, but a shadow build where the build directory lives under the 
source tree.

ie.

foo.pro
foo.cpp
build/Makefile
build/foo.o
build/foo

Creator has always warned about this but Diego claims it has stopped him 
from doing this.

-- 
Lincoln Ramsay - Senior Software Engineer
Qt Development Frameworks, Nokia - http://qt.nokia.com/



More information about the Qt-creator mailing list