diff --git a/setup.py b/setup.py index 7aa115bd41..9b5b9c856d 100755 --- a/setup.py +++ b/setup.py @@ -2421,7 +2421,7 @@ def nvcc_compile(nvcc_cmd): tace(spng_encoder_ENABLED, "xpra.codecs.spng.encoder", "spng") toggle_packages(nvjpeg_encoder_ENABLED or nvjpeg_decoder_ENABLED, "xpra.codecs.nvidia.nvjpeg") cuda = "cuda" -if nvjpeg_decoder_ENABLED or nvjpeg_decoder_ENABLED: +if nvjpeg_encoder_ENABLED or nvjpeg_decoder_ENABLED: # try to find a platform specific pkg-config file for cuda: cuda_arch = f"cuda-{ARCH}" for pcdir in os.environ.get("PKG_CONFIG_PATH", "/usr/lib/pkgconfig:/usr/lib64/pkgconfig").split(":"):