blob: e83ba753accfb154e4fbfefc7691b8d33f946eb8 (
plain) (
blame)
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
26
27
28
29
30
31
32
33
34
35
|
From 4e0fb906bb3c77f307763a9565295e7d23a3b5e7 Mon Sep 17 00:00:00 2001
From: "A. Wilcox" <AWilcox@Wilcox-Tech.com>
Date: Wed, 11 Oct 2017 17:47:23 -0500
Subject: [PATCH] newapkbuild: add default check to CMake and RelWithDebugInfo
type
---
newapkbuild.in | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/newapkbuild.in b/newapkbuild.in
index c11aa39..d1cf2b9 100644
--- a/newapkbuild.in
+++ b/newapkbuild.in
@@ -66,11 +66,16 @@ build_cmake() {
-DCMAKE_INSTALL_PREFIX=/usr \\
-DCMAKE_INSTALL_LIBDIR=lib \\
-DBUILD_SHARED_LIBS=True \\
- -DCMAKE_BUILD_TYPE=Release \\
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \\
-DCMAKE_CXX_FLAGS="\$CXXFLAGS" \\
-DCMAKE_C_FLAGS="\$CFLAGS" \\
\${CMAKE_CROSSOPTS}
make
+}
+
+check() {
+ cd "\$builddir"
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
__EOF__
}
--
2.14.1
|