-override_dh_auto_configure:
- dh_auto_configure --builddirectory=build-debian-release -- \
- -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
- -DUSE_OPENSSL:BOOL=OFF \
- -DUSE_HTTPS=mbedTLS \
- -DCERT_LOCATION=/etc/ssl/certs/ca-certificates.crt \
- -DUSE_CURL_SSL:BOOL=ON \
- -DUSE_GSSAPI:BOOL=ON \
- -DTHREADSAFE:BOOL=ON \
- -DBUILD_CLAR:BOOL=ON \
- -DUSE_NTLMCLIENT=OFF \
- -DENABLE_REPRODUCIBLE_BUILDS=ON \
- -DUSE_HTTP_PARSER=system \
- -DLIB_INSTALL_DIR:STRING=lib/$(DEB_HOST_MULTIARCH)
+BUILD_TESTS = $(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),OFF,ON)
+COMMON_CMAKE_FLAGS = \
+ -DBUILD_CLI=OFF \
+ -DBUILD_TESTS=$(BUILD_TESTS) \
+ -DCERT_LOCATION=/etc/ssl/certs/ca-certificates.crt \
+ -DDISABLE_ONLINE_TESTS=ON \
+ -DENABLE_REPRODUCIBLE_BUILDS=ON \
+ -DUSE_GSSAPI=ON \
+ -DUSE_HTTPS=mbedTLS \
+ -DUSE_HTTP_PARSER=system \
+ -DUSE_NTLMCLIENT=OFF