Add some output

This commit is contained in:
Berkus Decker 2017-11-28 02:41:02 +02:00
parent 7bf02f5bad
commit 6d82d2e14e
1 changed files with 4 additions and 3 deletions

View File

@ -17,6 +17,7 @@
# - AVUTIL
# - POSTPROC
# - SWSCALE
# - SWRESAMPLE
# the following variables will be defined
# <component>_FOUND - System has <component>
# <component>_INCLUDE_DIRS - Include directory necessary for using the <component> headers
@ -113,12 +114,12 @@ if (NOT FFMPEG_LIBRARIES)
# Check if the required components were found and add their stuff to the FFMPEG_* vars.
foreach (_component ${FFmpeg_FIND_COMPONENTS})
if (${_component}_FOUND)
# message(STATUS "Required component ${_component} present.")
message(STATUS "Found ffmpeg component ${_component}.")
set(FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} ${${_component}_LIBRARIES})
set(FFMPEG_DEFINITIONS ${FFMPEG_DEFINITIONS} ${${_component}_DEFINITIONS})
list(APPEND FFMPEG_INCLUDE_DIRS ${${_component}_INCLUDE_DIRS})
else ()
# message(STATUS "Required component ${_component} missing.")
message(STATUS "Missing ffmpeg component ${_component}.")
endif ()
endforeach ()
@ -150,4 +151,4 @@ foreach (_component ${FFmpeg_FIND_COMPONENTS})
endforeach ()
# Give a nice error message if some of the required vars are missing.
find_package_handle_standard_args(FFmpeg DEFAULT_MSG ${_FFmpeg_REQUIRED_VARS})
find_package_handle_standard_args(FFmpeg DEFAULT_MSG ${_FFmpeg_REQUIRED_VARS})