From a1752276e0f71f29df12317eaa81798ccbe2fa91 Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Mon, 29 Apr 2019 13:14:22 +0200 Subject: CMake: Do not link qmake against Qt (not even the bootstrap one) Qmake should not rebuild all the code in QtCore, but currently it does. When linking against QtCore, all the symbols get duplicated. A clever linker will "deduplicate" the symbols again, so this actually works with shared Qt builds, but it fails for static builds. Do not rely on the linker being clever and just do not link Qt at all for qmake. Change-Id: I0f79ed9176a19ee884dd425e5f23c26cf69dc422 Reviewed-by: Tobias Hunger --- qmake/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'qmake') diff --git a/qmake/CMakeLists.txt b/qmake/CMakeLists.txt index d40ec9119b..fc6e4ceea3 100644 --- a/qmake/CMakeLists.txt +++ b/qmake/CMakeLists.txt @@ -12,6 +12,7 @@ find_library(FWFoundation Foundation) # special case ##################################################################### add_qt_tool(qmake # special case + NO_QT # special case # GUI # special case: remove this SOURCES ../src/corelib/codecs/qutfcodec.cpp ../src/corelib/codecs/qutfcodec_p.h -- cgit v1.2.3