Skip to content

Commit

Permalink
Improve error message about FFmpeg not being available (#5494)
Browse files Browse the repository at this point in the history
Signed-off-by: Joaquin Anton <[email protected]>
  • Loading branch information
jantonguirao committed Jun 4, 2024
1 parent 794e45d commit 099c78e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/video/pkg_src/ffmpeg.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ if (NOT BUILD_FFMPEG)
PATHS ${pynvvideocodec_SOURCE_DIR}/external/ffmpeg
NO_DEFAULT_PATH)
if (${FFMPEG_DIR} STREQUAL "FFMPEG_DIR-NOTFOUND")
message(FATAL_ERROR "Could not find ffmpeg libs in pynvvideocodec.")
message(FATAL_ERROR
"Could not find FFmpeg libs in pynvvideocodec. "
"Please install FFmpeg or set the environment variable BUILD_FFMPEG to \"ON\" to build it from source")
endif()
set(BUNDLE_FFMPEG_LIBS ON)
set(FFMPEG_LIBRARY_DIR ${FFMPEG_DIR}/lib)
Expand Down

0 comments on commit 099c78e

Please sign in to comment.