commit:     38a03982ee1842298b6ec3fd262113a166b70e84
Author:     Aliaksei Urbanski <aliaksei.urbanski <AT> gmail <DOT> com>
AuthorDate: Wed Jun 26 03:32:46 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Jun 28 16:59:57 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38a03982

media-libs/oidn: fix a not used CMake variable in 2.2.2

Closes: https://bugs.gentoo.org/928424
Signed-off-by: Aliaksei Urbanski <aliaksei.urbanski <AT> gmail.com>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/oidn/oidn-2.2.2.ebuild | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/media-libs/oidn/oidn-2.2.2.ebuild 
b/media-libs/oidn/oidn-2.2.2.ebuild
index 224f56744910..4dcd0fbebb18 100644
--- a/media-libs/oidn/oidn-2.2.2.ebuild
+++ b/media-libs/oidn/oidn-2.2.2.ebuild
@@ -58,7 +58,6 @@ src_prepare() {
 src_configure() {
        local mycmakeargs=(
                -DOIDN_APPS="$(usex apps)"
-               -DOIDN_APPS_OPENIMAGEIO="$(usex apps "$(usex openimageio)")"
 
                -DOIDN_DEVICE_CPU="yes"
                -DOIDN_DEVICE_CUDA="$(usex cuda)"
@@ -66,6 +65,10 @@ src_configure() {
                # -DOIDN_DEVICE_SYCL="$(usex sycl)"
        )
 
+       if use apps; then
+               mycmakeargs+=( -DOIDN_APPS_OPENIMAGEIO="$(usex openimageio)" )
+       fi
+
        if use cuda; then
                export CUDAHOSTCXX="$(cuda_gccdir)"
        fi

Reply via email to