qt5base-lts/qmake/generators
Alexandru Croitor 6ad08b9cad CMake: Fix handling of static dependencies that have spaces in path
The absolute paths of certain static dependencies can have spaces in
them. The _qt5_$${CMAKE_MODULE_NAME}_process_prl_file fails to handle
this, and simply replaces all spaces with semicolons, which obviously
breaks the list of dependencies, and a consuming application fails to
link with a message like:

LINK : fatal error LNK1181: cannot open input file 'C:\Program.obj'

This change partially restores the functionality that was added in
102e1822ff specifically the part
that changes qmake to export an additional variable
QMAKE_PRL_LIBS_FOR_CMAKE. This variable has the same content as
QMAKE_PRL_LIBS except it uses a semicolon as a separator, so that
CMake can correctly parse the separate lib entries.

This is much cleaner than trying to parse the original QMAKE_PRL_LIBS
variable with a complicated regular expression.

Amends eda28621f6.

Task-number: QTBUG-38913
Change-Id: I1d18fb779606505bc92320d8ce13232c7022e212
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
2019-07-05 10:18:56 +02:00
..
mac qmake: Cleanup 2019-06-05 10:59:43 +02:00
unix Merge remote-tracking branch 'origin/5.13.0' into 5.13 2019-06-11 10:30:48 +02:00
win32 Merge remote-tracking branch 'origin/5.12' into 5.13 2019-06-25 15:47:42 +02:00
makefile.cpp CMake: Fix handling of static dependencies that have spaces in path 2019-07-05 10:18:56 +02:00
makefile.h Make the Makefile a dependency of default targets for nmake 2019-02-04 08:10:25 +00:00
makefiledeps.cpp qmake: Cleanup 2019-06-05 10:59:43 +02:00
makefiledeps.h qmake: replace a uint:1 with a bool 2016-08-15 22:16:09 +00:00
metamakefile.cpp qmake: Apply modernize-use-nullptr 2018-08-08 17:30:32 +00:00
metamakefile.h qmake: Apply modernize-use-nullptr 2018-08-08 17:30:32 +00:00
projectgenerator.cpp Enable deprecation warnings by default 2019-02-02 02:31:05 +00:00
projectgenerator.h qmake: Cleanup 2019-06-05 10:59:43 +02:00
xmloutput.cpp Merge remote-tracking branch 'origin/5.6' into dev 2016-02-11 08:25:04 +01:00
xmloutput.h Updated license headers 2016-01-21 18:55:18 +00:00