diff options
| author | 2021-11-10 01:01:25 -0500 | |
|---|---|---|
| committer | 2021-11-10 01:01:25 -0500 | |
| commit | af3dd213b4c2ea6745854da535241a6af713094f (patch) | |
| tree | 15c14b4c1baf6427e7ff9a5bffaf22e31357468a /debian | |
| parent | 3abfcb23693310260300905698842ca467a033e5 (diff) | |
d/rules: Disable building tests if the nocheck option is used.
Diffstat (limited to 'debian')
| -rwxr-xr-x | debian/rules | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/debian/rules b/debian/rules index 9b9450b..7ff13f9 100755 --- a/debian/rules +++ b/debian/rules @@ -11,8 +11,12 @@ export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed export BARRIER_VERSION_STAGE=Release +ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) + CONFIGURE_FLAGS += -DBARRIER_BUILD_TESTS=no +endif + %: dh $@ --builddirectory=builddir override_dh_auto_configure: - dh_auto_configure --builddirectory=builddir -- -DBARRIER_USE_EXTERNAL_GTEST=ON + dh_auto_configure --builddirectory=builddir -- -DBARRIER_USE_EXTERNAL_GTEST=ON $(CONFIGURE_FLAGS) |
