summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorKevin Funk <kevin.funk@kdab.com>2019-06-06 22:25:05 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-06-14 10:16:40 +0000
commit7559d508d1993dd90a4939441eaf353d55462ae5 (patch)
tree469dbc57536008520bf2b6f74d0c275a817c2802 /qmake
parentcfcd50875b84273942709f224a1cf37fa70b41b7 (diff)
cmake: Make CMake superbuilds work
In case of a CMake superbuild, the actual install root in a non-prefix build is the top-level build directory (not $TOP_BUILDDIR/qtbase anymore). This is more in line how CMake lays out things by default. Task-number: QTBUG-75582 Change-Id: I4e1744b5c877508fedc33e237eec28cb7436010b Reviewed-by: Qt CMake Build Bot Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'qmake')
-rw-r--r--qmake/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/CMakeLists.txt b/qmake/CMakeLists.txt
index 6f8763524f..22fbda307b 100644
--- a/qmake/CMakeLists.txt
+++ b/qmake/CMakeLists.txt
@@ -124,7 +124,7 @@ add_qt_tool(qmake # special case
generators/win32
library
$<TARGET_PROPERTY:Qt::CorePrivate,INTERFACE_INCLUDE_DIRECTORIES> # special case
- ${CMAKE_BINARY_DIR}/src/corelib/global # special case: for qconfig.cpp
+ ${CMAKE_CURRENT_BINARY_DIR}/../src/corelib/global # special case: for qconfig.cpp
)
qt_internal_add_target_aliases(Bootstrap) # special case