In the default KDE5 cmake configure all tests build in the main
build-task.  What do you think about doing this only in a debug
environment? This should speed up our bulk build!

RS

Index: kf5.port.mk
===================================================================
RCS file: /cvs/ports/devel/kf5/kf5.port.mk,v
retrieving revision 1.10
diff -u -p -u -p -r1.10 kf5.port.mk
--- kf5.port.mk 22 Oct 2018 20:30:41 -0000      1.10
+++ kf5.port.mk 24 Mar 2019 12:23:51 -0000
@@ -97,4 +97,13 @@ RUN_DEPENDS := \
 LIB_DEPENDS := \
        ${LIB_DEPENDS:Mdevel/kf5/*:C,(>=.*)?$,>=${MODKF5_VERSION:R},} \
                        ${LIB_DEPENDS:Ndevel/kf5/*}
+
+# Only build tests in a debug environment
+.if ${MODCMAKE_DEBUG:L} == "yes" || defined(DEBUG)
+CONFIGURE_ARGS +=      -DBUILD_TESTING=ON
+NO_TEST=               Yes
+.else
+CONFIGURE_ARGS +=      -DBUILD_TESTING=OFF
+.endif
+
 .endif

Reply via email to