summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-fs/cvmfs/cvmfs-9999.ebuild')
-rw-r--r--net-fs/cvmfs/cvmfs-9999.ebuild13
1 files changed, 4 insertions, 9 deletions
diff --git a/net-fs/cvmfs/cvmfs-9999.ebuild b/net-fs/cvmfs/cvmfs-9999.ebuild
index bcf9821..0a47788 100644
--- a/net-fs/cvmfs/cvmfs-9999.ebuild
+++ b/net-fs/cvmfs/cvmfs-9999.ebuild
@@ -114,22 +114,17 @@ src_configure() {
-DINSTALL_MOUNT_SCRIPTS=ON
$(cmake-utils_use doc BUILD_DOCUMENTATION)
$(cmake-utils_use server BUILD_SERVER)
- $(cmake-utils_use test BUILD_UNITTESTS)
)
+ if use test || use test-programs; then
+ mycmakeargs+=( -DBUILD_UNITTESTS=ON )
+ fi
+ use test-programs && mycmakeargs+=( -DINSTALL_UNITTESTS=ON )
if use debug; then
mycmakeargs+=(
$(cmake-utils_use server BUILD_SERVER_DEBUG)
$(cmake-utils_use test BUILD_UNITTESTS_DEBUG)
)
fi
- if use test-programs; then
- mycmakeargs+=(
- -DBUILD_UNITTESTS=ON
- -DINSTALL_UNITTESTS=ON
- )
- else
- mycmakeargs+=( -DINSTALL_UNITTESTS=OFF )
- fi
cmake-utils_src_configure
}