diff options
author | Alexey Edelev <alexey.edelev@qt.io> | 2021-07-06 15:50:06 +0200 |
---|---|---|
committer | Alexey Edelev <alexey.edelev@qt.io> | 2021-07-07 17:07:15 +0200 |
commit | 9bbca531ebe498afa10d9a1c02518fcfc54490a2 (patch) | |
tree | af3c13e8d29fb3f214fdfccce9d8d37072d98353 /cmake/QtBuild.cmake | |
parent | fd308819891fdc3c4296050193e97f5d9259501f (diff) |
Fix platform definition directory in top-level build
QT_BUILD_DIR should be used instead of CMAKE_BINARY_DIR as a base
directory for platform definition when building a non-prefixed
build since artifacts are copied to qtbase directory for top-level
build.
Amends 478f5fcde66a49b710c427447916a0ee0e4d9e0a
Pick-to: 6.1 6.2
Task-number: QTBUG-94973
Change-Id: I5cce16fdc7f760b954222ae67a4b85d4beea7f13
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtBuild.cmake')
-rw-r--r-- | cmake/QtBuild.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index e04069c648..24245178a5 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -383,7 +383,7 @@ set(QT_PLATFORM_DEFINITION_BUILD_INTERFACE_BASE_DIR # Used by qtbase and consumers in non-prefix builds via BUILD_INTERFACE if(NOT QT_WILL_INSTALL) set(QT_PLATFORM_DEFINITION_BUILD_INTERFACE_BASE_DIR - "${CMAKE_BINARY_DIR}/${INSTALL_MKSPECSDIR}" + "${QT_BUILD_DIR}/${INSTALL_MKSPECSDIR}" ) endif() |