diff options
Diffstat (limited to 'net-fs/cvmfs/cvmfs-2.1.20.0_p05-r2.ebuild')
-rw-r--r-- | net-fs/cvmfs/cvmfs-2.1.20.0_p05-r2.ebuild | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/net-fs/cvmfs/cvmfs-2.1.20.0_p05-r2.ebuild b/net-fs/cvmfs/cvmfs-2.1.20.0_p05-r2.ebuild index 2bde18f..1f14695 100644 --- a/net-fs/cvmfs/cvmfs-2.1.20.0_p05-r2.ebuild +++ b/net-fs/cvmfs/cvmfs-2.1.20.0_p05-r2.ebuild @@ -124,22 +124,17 @@ src_configure() { -DBUILD_LIBCVMFS=ON -DINSTALL_MOUNT_SCRIPTS=ON $(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 } |