debian packages: only enable coverage tests for debug builds

This commit is contained in:
Juergen E. Fischer 2015-02-02 11:11:20 +01:00
parent ee365bfcb5
commit 4488065058

5
debian/rules vendored
View File

@ -92,12 +92,15 @@ endif
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CMAKE_OPTS += -DCMAKE_BUILD_TYPE=Debug
ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
CMAKE_OPTS += -DENABLE_COVERAGE=TRUE
endif
endif
ifneq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
CMAKE_OPTS += -DENABLE_TESTS=FALSE
else
CMAKE_OPTS += -DENABLE_TESTS=TRUE -DENABLE_COVERAGE=TRUE
CMAKE_OPTS += -DENABLE_TESTS=TRUE
endif
ifneq (,$(findstring $(DISTRIBUTION),"wheezy jessie trusty sid sid-oracle"))