File: 1005_tests-Workaround-cmake-bug.patch

package info (click to toggle)
libqtdbustest 0.4.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 364 kB
  • sloc: cpp: 565; sh: 59; makefile: 28
file content (25 lines) | stat: -rw-r--r-- 673 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From dac68c638a1ee81bac550692ab763703fd8d5f78 Mon Sep 17 00:00:00 2001
From: Marius Gripsgard <mariogrip@debian.org>
Date: Sun, 28 Jan 2024 01:28:12 +0100
Subject: [PATCH] tests: Workaround cmake bug

I have no idea what is going on here, but adding the gmock/gtest
libraries twice seems to fix the issue where cmake does not wait for
gmock to be done building.
---
 tests/CMakeLists.txt | 4 ++++
 1 file changed, 4 insertions(+)

--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -36,6 +36,10 @@
 	qtdbustest${QT_SUFFIX}
 	${GTEST_LIBRARIES}
 	${GMOCK_LIBRARIES}
+
+	# workaround bug in cmake
+        ${GTEST_LIBRARIES}
+        ${GMOCK_LIBRARIES}
 )
 
 add_test(