From 96b45f8fcf2cd4f30611ef5d1a6698475734e1d3 Mon Sep 17 00:00:00 2001 From: Joaquin Anton Date: Mon, 3 Jun 2024 11:38:25 +0200 Subject: [PATCH] Improve error msg Signed-off-by: Joaquin Anton --- plugins/video/pkg_src/ffmpeg.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/video/pkg_src/ffmpeg.cmake b/plugins/video/pkg_src/ffmpeg.cmake index aef8eb156b..f9718a5a08 100644 --- a/plugins/video/pkg_src/ffmpeg.cmake +++ b/plugins/video/pkg_src/ffmpeg.cmake @@ -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)