33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
|
From 7d4da27df6ab641390de75dd7c04b755295a653b Mon Sep 17 00:00:00 2001
|
||
|
From: Samuli Piippo <samuli.piippo@qt.io>
|
||
|
Date: Mon, 22 Aug 2022 15:01:28 +0300
|
||
|
Subject: [PATCH] testlib: don't track the build or source directories
|
||
|
|
||
|
Build tests without location of the build and sources directories.
|
||
|
|
||
|
Upstream-Status: Inappropriate [embedded specific]
|
||
|
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
||
|
Change-Id: I8d5add473623a3d9f481097649819c9fb906e4b2
|
||
|
---
|
||
|
mkspecs/features/testlib_defines.prf | 2 --
|
||
|
src/testlib/Qt5TestConfigExtras.cmake.in | 5 -----
|
||
|
2 files changed, 7 deletions(-)
|
||
|
|
||
|
diff --git a/mkspecs/features/testlib_defines.prf b/mkspecs/features/testlib_defines.prf
|
||
|
index 901e03a91d..e69de29bb2 100644
|
||
|
--- a/mkspecs/features/testlib_defines.prf
|
||
|
+++ b/mkspecs/features/testlib_defines.prf
|
||
|
@@ -1,2 +0,0 @@
|
||
|
-contains(TEMPLATE, vc.*): DEFINES += QT_TESTCASE_BUILDDIR=\"$$OUT_PWD\"
|
||
|
-else: DEFINES += QT_TESTCASE_BUILDDIR=$$shell_quote(\"$$OUT_PWD\")
|
||
|
diff --git a/src/testlib/Qt5TestConfigExtras.cmake.in b/src/testlib/Qt5TestConfigExtras.cmake.in
|
||
|
index 2a575958ae..e69de29bb2 100644
|
||
|
--- a/src/testlib/Qt5TestConfigExtras.cmake.in
|
||
|
+++ b/src/testlib/Qt5TestConfigExtras.cmake.in
|
||
|
@@ -1,5 +0,0 @@
|
||
|
-
|
||
|
-set_property(TARGET Qt5::Test
|
||
|
- APPEND PROPERTY
|
||
|
- INTERFACE_COMPILE_DEFINITIONS QT_TESTCASE_BUILDDIR=\\\"\${CMAKE_BINARY_DIR}\\\"
|
||
|
-)
|