dev-cpp/gflags: Enable tests
authorMichał Górny <mgorny@gentoo.org>
Thu, 29 Jun 2017 08:54:38 +0000 (10:54 +0200)
committerMichał Górny <mgorny@gentoo.org>
Sun, 9 Jul 2017 21:41:27 +0000 (23:41 +0200)
dev-cpp/gflags/gflags-9999.ebuild

index 8a45409fc694c4b551dd0064c173bd92f540320e..79f70a7aee486ec38cdd5988c46bff7b78a46e00 100644 (file)
@@ -18,7 +18,7 @@ HOMEPAGE="http://gflags.github.io/gflags/"
 
 LICENSE="BSD"
 SLOT="0/2.2"
-IUSE="static-libs"
+IUSE="static-libs test"
 
 # AUTHORS.txt only links the google group
 DOCS=( ChangeLog.txt README.md )
@@ -27,6 +27,7 @@ multilib_src_configure() {
        local mycmakeargs=(
                -DBUILD_SHARED_LIBS=ON
                -DBUILD_STATIC_LIBS=$(usex static-libs)
+               -DBUILD_TESTING=$(usex test)
                # avoid installing .cmake/packages, e.g.:
                # >>> /tmp/portage/dev-cpp/gflags-9999/homedir/.cmake/packages/gflags/a7fca4708532331c2d656af0fdc8b8b9
                -DREGISTER_INSTALL_PREFIX=OFF