qt5base-lts/mkspecs/features/data
Alexandru Croitor 8c6824f2af CMake: Fix static build linkage with CMake version lower than 3.13
After appropriate link flags are determined, they are added to the
INTERFACE_LINK_OPTIONS property. Unfortunately this property was added
in 3.13, and thus static builds on Windows for instance failed with
missing symbols due to missing system libraries on the link command
line, when the CMake version was lower.

When detecting a lower version, add the flags instead to
INTERFACE_LINK_LIBRARIES, which is a property that is available in
older CMake versions. To do this we have to strip the SHELL: prefix,
which means that the added link flags might get deduplicated, and thus
it can happen that the linking phase might still fail.

Nevertheless, on Windows this improves the situation when using an older
CMake version.

Amends 44602224bf

Task-number: QTBUG-38913
Change-Id: Ib710b8ea691d4a9281dcd5f5b9700b11df0a5c10
Reviewed-by: Kyle Edwards <kyle.edwards@kitware.com>
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
2019-11-25 09:14:09 +01:00
..
cmake CMake: Fix static build linkage with CMake version lower than 3.13 2019-11-25 09:14:09 +01:00
mac macOS: Fix Objective-C namespaceing with Xcode 10 2018-12-03 20:13:13 +00:00
testserver Share the common configurations among different modules 2019-07-01 01:09:42 +02:00
unix findclasslist.pl: namespaces can be exported too 2016-10-13 08:29:02 +00:00
configure.json configure: log -I and -L before doing first library check 2018-11-21 23:07:34 +00:00
dummy.cpp Implement a more direct headersclean check 2015-04-17 00:54:45 +00:00
dumpvcvars.bat qmake: rewrite msvc/nmake cross-build environment setup 2019-01-05 20:33:24 +00:00
macros.cpp qmake: add default path and version detection for ghs toolchain 2018-08-17 15:07:00 +00:00