summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernd Waibel <waebbl@gmail.com>2020-12-27 19:37:56 +0100
committerSam James <sam@gentoo.org>2020-12-27 19:15:46 +0000
commit3dbe219bfd55947e20f39476d36d2094a7255a46 (patch)
tree8f8b05ff12910b840b8a23db299283ecd5294573 /sci-libs
parentsys-libs/libcxx: fix "lib/CMakeLists.txt not found" (diff)
downloadgentoo-3dbe219bfd55947e20f39476d36d2094a7255a46.tar.gz
gentoo-3dbe219bfd55947e20f39476d36d2094a7255a46.tar.bz2
gentoo-3dbe219bfd55947e20f39476d36d2094a7255a46.zip
sci-libs/cgnslib: fix cmake unused variable warnings
- fix warnings about unused variables from cmake - restrict test when USE=fortran, the tests don't build Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Bernd Waibel <waebbl@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/18838 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/cgnslib/cgnslib-3.4.0.ebuild22
1 files changed, 18 insertions, 4 deletions
diff --git a/sci-libs/cgnslib/cgnslib-3.4.0.ebuild b/sci-libs/cgnslib/cgnslib-3.4.0.ebuild
index d7da6448621a..6eac6426bb89 100644
--- a/sci-libs/cgnslib/cgnslib-3.4.0.ebuild
+++ b/sci-libs/cgnslib/cgnslib-3.4.0.ebuild
@@ -19,7 +19,15 @@ LICENSE="ZLIB"
SLOT="0/3"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc examples fortran hdf5 legacy mpi static-libs szip test tools"
-RESTRICT="!test? ( test )"
+RESTRICT="
+ fortran? ( test )
+ !test? ( test )
+"
+
+REQUIRED_USE="
+ mpi? ( hdf5 )
+ szip? ( hdf5 )
+"
RDEPEND="hdf5? ( sci-libs/hdf5:=[mpi=,szip=] )
tools? (
@@ -57,10 +65,16 @@ src_configure() {
-DCGNS_ENABLE_HDF5="$(usex hdf5)"
-DCGNS_ENABLE_LEGACY="$(usex legacy)"
-DCGNS_ENABLE_TESTS="$(usex test)"
- -DHDF5_NEED_MPI="$(usex mpi)"
- -DHDF5_NEED_SZIP="$(usex szip)"
- -DHDF5_NEED_ZLIB="$(usex szip)"
)
+
+ if use hdf5; then
+ mycmakeargs+=(
+ -DHDF5_NEED_MPI="$(usex mpi)"
+ -DHDF5_NEED_SZIP="$(usex szip)"
+ -DHDF5_NEED_ZLIB="$(usex szip)"
+ )
+ fi
+
cmake_src_configure
}