mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-17 19:13:13 -04:00
sci-libs/ButterflyPACK: make options conditional to use
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
@@ -32,10 +32,9 @@ src_configure() {
|
|||||||
local pkgc="$(tc-getPKG_CONFIG)"
|
local pkgc="$(tc-getPKG_CONFIG)"
|
||||||
local mycmakeargs=(
|
local mycmakeargs=(
|
||||||
-DBUILD_SHARED_LIBS=ON
|
-DBUILD_SHARED_LIBS=ON
|
||||||
|
|
||||||
"-DTPL_ARPACK_LIBRARIES=$(${pkgc} --libs arpack)"
|
|
||||||
"-DTPL_MAGMA_LIBRARIES=$(${pkgc} --libs magma)"
|
|
||||||
)
|
)
|
||||||
|
use arpack && mycmakeargs+=( "-DTPL_ARPACK_LIBRARIES=$(${pkgc} --libs arpack)" )
|
||||||
|
use magma && mycmakeargs+=( "-DTPL_MAGMA_LIBRARIES=$(${pkgc} --libs magma)" )
|
||||||
cmake_src_configure
|
cmake_src_configure
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user