Skip to content

Commit

Permalink
nvdec: only link cuda if found
Browse files Browse the repository at this point in the history
  • Loading branch information
bradh committed Sep 3, 2024
1 parent e2768b4 commit 348a37e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libheif/plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ plugin_compilation(openh264dec OpenH264 OpenH264_DECODER_FOUND OpenH264_DECODER
set(NV_DECODER_sources decoder_nvdec.cc decoder_nvdec.h NvDecoder.cpp NvDecoder.h)
set(NV_DECODER_extra_plugin_sources)
plugin_compilation(nvdec NVDEC NVDEC_FOUND NV_DECODER NV_DECODER)
if(WITH_NV_DECODER)
if(NVDEC_FOUND)
target_link_libraries(heif PRIVATE CUDA::cuda_driver)
endif()

Expand Down

0 comments on commit 348a37e

Please sign in to comment.