qt5base-lts/mkspecs
Stephen Kelly f16a77d783 Use IF(NOT TARGET ...) before creating imported targets.
Initially we didn't do this because someone could accidentally create
another target of a conflicting name, and used a variable to store whether we
have created the target already or not.

That wasn't adequeate to deal with finding the package in a scope
like a function, so we used a directory property. However, the directory
property is not valid in the same scopes as the defined target. For
example, finding a Qt module in both a directory and a subdirectory causes
a conflict.

As it is already unlikely that a target would be accidentally created with
a name like Qt5::Core, we should simply use the IF(TARGET) form.

Change-Id: If64f25d45f51edcd1edb0d4bfb5ed3bb2479bd27
Reviewed-by: David Faure <faure@kde.org>
2012-05-15 23:03:23 +02:00
..
aix-g++ remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
aix-g++-64 remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
aix-xlc remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
aix-xlc-64 remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
cmake Use IF(NOT TARGET ...) before creating imported targets. 2012-05-15 23:03:23 +02:00
common configure: Remove the -dwarf2 argument for Mac OS X builds 2012-05-11 12:52:21 +02:00
cygwin-g++ remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
darwin-g++ remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
devices device: don't set a default cross compile prefix 2012-05-15 04:56:59 +02:00
features Set QMAKE_DOCS_INSTALLDIR to $$[QT_INSTALL_DOCS] to allow overriding in .pro 2012-05-15 14:34:15 +02:00
freebsd-g++ Do not define QT_AOUT_UNDERSCORE in freebsd-g++'s mkspec. 2012-04-17 16:28:46 +02:00
freebsd-g++46 mkspecs: Define compilers and linkers elsewhere for freebsd-g++46. 2012-05-03 05:55:14 +02:00
freebsd-icc remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
hpux-acc remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
hpux-acc-64 remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
hpux-acc-o64 remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
hpux-g++ remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
hpux-g++-64 remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
hpuxi-acc-32 remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
hpuxi-acc-64 remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
hpuxi-g++-64 remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
hurd-g++ remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
irix-cc remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
irix-cc-64 remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
irix-g++ remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
irix-g++-64 remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
linux-arm-gnueabi-g++ Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
linux-cxx remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
linux-ecc-64 remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
linux-g++ Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
linux-g++-32 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
linux-g++-64 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
linux-g++-maemo Include generic ARM qplatformdefs.h in linux-g++-maemo mkspec 2012-03-19 20:16:04 +01:00
linux-icc Disable ICC diagnostic 2261 about __assume with side-effects 2012-03-27 05:35:57 +02:00
linux-icc-32 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
linux-icc-64 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
linux-kcc remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
linux-llvm Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
linux-lsb-g++ Use the LSB linker to link 2012-03-15 00:50:47 +01:00
linux-pgcc remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
lynxos-g++ remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
macx-clang Add mkspecs for 32-bit Mac OS X builds. 2012-05-04 09:19:23 +02:00
macx-clang-32 Add mkspecs for 32-bit Mac OS X builds. 2012-05-04 09:19:23 +02:00
macx-g++ Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
macx-g++40 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
macx-g++42 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
macx-g++-32 Add mkspecs for 32-bit Mac OS X builds. 2012-05-04 09:19:23 +02:00
macx-icc Remove all usages of "arch" CFLAGS on Mac. 2012-05-04 09:19:23 +02:00
macx-llvm Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
macx-pbuilder Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
macx-xcode Remove all usages of "arch" CFLAGS on Mac. 2012-05-04 09:19:23 +02:00
macx-xlc remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
modules update readme to current reality 2012-01-27 13:55:27 +01:00
netbsd-g++ remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
openbsd-g++ remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
sco-cc remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
sco-g++ remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
solaris-cc remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
solaris-cc-64 remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
solaris-cc-64-stlport Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
solaris-cc-stlport Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
solaris-g++ remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
solaris-g++-64 remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
tru64-cxx remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
tru64-g++ remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
unixware-cc remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
unixware-g++ remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs 2012-03-01 21:00:07 +01:00
unsupported Added mkspecs for iOS. 2012-04-26 03:15:22 +02:00
win32-g++ remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs (part 2) 2012-03-09 18:50:52 +01:00
win32-icc remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs (part 2) 2012-03-09 18:50:52 +01:00
win32-msvc2005 remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs (part 2) 2012-03-09 18:50:52 +01:00
win32-msvc2008 remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs (part 2) 2012-03-09 18:50:52 +01:00
win32-msvc2010 remove assignment of QMAKE_MOC & QMAKE_UIC from mkspecs (part 2) 2012-03-09 18:50:52 +01:00
wince50standard-armv4i-msvc2005 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wince50standard-armv4i-msvc2008 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wince50standard-mipsii-msvc2005 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wince50standard-mipsii-msvc2008 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wince50standard-mipsiv-msvc2005 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wince50standard-mipsiv-msvc2008 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wince50standard-sh4-msvc2005 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wince50standard-sh4-msvc2008 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wince50standard-x86-msvc2005 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wince50standard-x86-msvc2008 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wince60standard-armv4i-msvc2005 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wince60standard-x86-msvc2005 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wince70embedded-armv4i-msvc2008 Enable basic gesture support for WEC7. 2012-02-06 05:15:11 +01:00
wince70embedded-x86-msvc2008 Enable basic gesture support for WEC7. 2012-02-06 05:15:11 +01:00
wincewm50pocket-msvc2005 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wincewm50pocket-msvc2008 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wincewm50smart-msvc2005 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wincewm50smart-msvc2008 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wincewm60professional-msvc2005 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wincewm60professional-msvc2008 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wincewm60standard-msvc2005 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wincewm60standard-msvc2008 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wincewm65professional-msvc2005 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00
wincewm65professional-msvc2008 Remove "All rights reserved" line from license headers. 2012-01-30 03:54:59 +01:00