[arrayfire] 06/08: d/rules: disable build of examples if nocheck requested.
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Wed Jan 6 07:53:58 UTC 2016
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch debian/sid
in repository arrayfire.
commit 1b10bf628b5c8ded1b039614a60e84dc256da6ec
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Mon Jan 4 20:42:11 2016 +0000
d/rules: disable build of examples if nocheck requested.
---
debian/rules | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/debian/rules b/debian/rules
index 786f607..6d6fbbf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -40,11 +40,17 @@ CMAKE_BUILD_OPTIONS = \
-DUSE_SYSTEM_CLFFT=ON \
-DWITH_COVERAGE=OFF
-# Disable build of testsuite if no check requested.
+# Disable build of examples and testsuite if no check requested.
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-CMAKE_BUILD_OPTIONS += -DBUILD_GTEST=ON -DBUILD_TEST=ON
+CMAKE_BUILD_OPTIONS += \
+ -DBUILD_EXAMPLES=ON \
+ -DBUILD_GTEST=ON \
+ -DBUILD_TEST=ON
else
-CMAKE_BUILD_OPTIONS += -DBUILD_GTEST=OFF -DBUILD_TEST=OFF
+CMAKE_BUILD_OPTIONS += \
+ -DBUILD_EXAMPLES=OFF \
+ -DBUILD_GTEST=OFF \
+ -DBUILD_TEST=OFF
endif
# Prevent execution of slow tests.
@@ -59,12 +65,10 @@ override_dh_auto_clean:
find $(CURDIR) -name "version.h" -delete
override_dh_auto_configure-arch:
- dh_auto_configure -- $(CMAKE_BUILD_OPTIONS) -DBUILD_DOCS=OFF \
- -DBUILD_EXAMPLES=OFF
+ dh_auto_configure -- $(CMAKE_BUILD_OPTIONS) -DBUILD_DOCS=OFF
override_dh_auto_configure-indep:
- dh_auto_configure -- $(CMAKE_BUILD_OPTIONS) -DBUILD_DOCS=ON \
- -DBUILD_EXAMPLES=ON
+ dh_auto_configure -- $(CMAKE_BUILD_OPTIONS) -DBUILD_DOCS=ON
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/arrayfire.git
More information about the debian-science-commits
mailing list