sci-libs/symengine: Fix unused cmake var warning
authorAndreas Sturmlechner <asturm@gentoo.org>
Sun, 8 Mar 2020 15:42:55 +0000 (16:42 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sun, 8 Mar 2020 16:01:30 +0000 (17:01 +0100)
Closes: https://bugs.gentoo.org/659512
Package-Manager: Portage-2.3.93, Repoman-2.3.20
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
sci-libs/symengine/symengine-0.5.0.ebuild

index 5949ae7acbbe1567bfa5c8eb13ab6e870bfd0d75..15ce10116775a6caf62616f7681c0ff1a3485c0f 100644 (file)
@@ -56,7 +56,6 @@ src_configure() {
                int_class=gmp
        fi
        local mycmakeargs=(
-               -DARB_INCLUDE_DIR="${EPREFIX}/usr/include"
                -DINTEGER_CLASS="${int_class}"
                -DBUILD_BENCHMARKS="$(usex benchmarks)"
                -DBUILD_DOXYGEN="$(usex doc)"
@@ -74,6 +73,8 @@ src_configure() {
                -DWITH_TCMALLOC="$(usex tcmalloc)"
                -DWITH_ECM="$(usex ecm)"
        )
+       use arb && mycmakeargs+=( -DARB_INCLUDE_DIR="${EPREFIX}/usr/include" )
+
        test-flag-CXX -std=c++11 && append-cxxflags -std=c++11
        cmake_src_configure
 }