]> git.pld-linux.org Git - packages/ka5-cantor.git/commitdiff
- bcond_with tests
authorWitold Filipczyk <witekfl@poczta.onet.pl>
Tue, 5 Apr 2022 15:26:51 +0000 (17:26 +0200)
committerWitold Filipczyk <witekfl@poczta.onet.pl>
Tue, 5 Apr 2022 15:26:51 +0000 (17:26 +0200)
ka5-cantor.spec

index 5867565ef69c7f9eac7910f5e833426cce1af739..e27cc806a13c2b12d411e073051d74970a0b83f9 100644 (file)
@@ -1,6 +1,7 @@
 #
 # Conditional build:
 %bcond_without luajit          # build without luajit
+%bcond_with    tests           # build with tests
 #
 %ifarch x32
 %undefine      with_luajit
@@ -120,11 +121,17 @@ install -d build
 cd build
 %cmake \
        -G Ninja \
+       %{!?with_tests:-DBUILD_TESTING=OFF} \
        -DHTML_INSTALL_DIR=%{_kdedocdir} \
        -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
        ..
 %ninja_build
 
+%if %{with tests}
+ctest
+%endif
+
+
 %install
 rm -rf $RPM_BUILD_ROOT
 %ninja_install -C build
This page took 0.304756 seconds and 4 git commands to generate.