From 4e0fb906bb3c77f307763a9565295e7d23a3b5e7 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" 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