File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -96,12 +96,16 @@ else()
96
96
find_component (${COMPONENT} lib${LOWERCOMPONENT} ${LOWERCOMPONENT} lib${LOWERCOMPONENT}/${LOWERCOMPONENT}.h )
97
97
# If the component is found.
98
98
if (${COMPONENT} _FOUND )
99
- message (STATUS "Required component ${COMPONENT} present." )
99
+ message (STATUS "Component ${COMPONENT} present." )
100
100
set (FFMPEG_LIBRARIES ${FFMPEG_LIBRARIES} ${${COMPONENT}_LIBRARIES} )
101
101
set (FFMPEG_DEFINITIONS ${FFMPEG_DEFINITIONS} ${${COMPONENT}_DEFINITIONS} )
102
102
list (APPEND FFMPEG_INCLUDE_DIR ${${COMPONENT}_INCLUDE_DIR} )
103
103
else ()
104
- message (STATUS "Required component ${COMPONENT} missing." )
104
+ if (FFmpeg_FIND_REQUIRED )
105
+ message (SEND_ERROR "Error: required component ${COMPONENT} missing." )
106
+ else ()
107
+ message (STATUS "Warning: component ${COMPONENT} missing." )
108
+ endif ()
105
109
endif ()
106
110
endforeach ()
107
111
You can’t perform that action at this time.
0 commit comments