summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopenglframebufferobject.cpp
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-11-22 17:49:06 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-11-25 09:14:09 +0100
commit8c6824f2af79b6a094566d04d62a084e8448d333 (patch)
treec20470d6c4c884a63be91bf7c3cb02e25f784750 /src/gui/opengl/qopenglframebufferobject.cpp
parent2e7c83ea3882edd7bcc84c67c31fdc71be40e223 (diff)
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 44602224bfae7bea08e5883768cfeef6629ac503 Task-number: QTBUG-38913 Change-Id: Ib710b8ea691d4a9281dcd5f5b9700b11df0a5c10 Reviewed-by: Kyle Edwards <kyle.edwards@kitware.com> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/gui/opengl/qopenglframebufferobject.cpp')
0 files changed, 0 insertions, 0 deletions