From 3c9bf5676726f48657451290c497fbfff004a345 Mon Sep 17 00:00:00 2001 From: FireFragment <55660550+FireFragment@users.noreply.github.com> Date: Mon, 25 Apr 2022 19:24:58 +0200 Subject: [PATCH] Improve CMake error message in case of missing libvlc When running CMake with VLC installed, but without libvlc there pops out following error message: > You need to have eithoer GStreamer or VLC to compile! This may be confusing for some users, because they might have VLC already installed, but not libvlc. This commit fixes it. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 834125bf..f3b39f34 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -538,7 +538,7 @@ add_custom_target(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/c # Show a summary of what we have enabled summary_show() if(NOT HAVE_GSTREAMER AND NOT HAVE_VLC) - message(FATAL_ERROR "You need to have either GStreamer or VLC to compile!") + message(FATAL_ERROR "You need to have either GStreamer or libvlc to compile!") elseif(NOT HAVE_GSTREAMER) message(WARNING "GStreamer is the only engine that is fully implemented. Using other engines is possible but not recommended.") endif()