未找到依赖库时,关闭编译test_player

This commit is contained in:
ziyue 2021-06-29 18:37:09 +08:00
parent ebb7aeef9b
commit 4ec311652a

View File

@ -79,6 +79,7 @@ if (SDL2_FOUND AND AVCODEC_FOUND AND AVUTIL_FOUND AND SWRESAMPLE_FOUND)
message(STATUS "${PLAYER_NAME} enabled") message(STATUS "${PLAYER_NAME} enabled")
else () else ()
message(STATUS "${PLAYER_NAME} disabled, please install sdl2 ffmpeg/libavcodec ffmpeg/libavutil ffmpeg/libswresample") message(STATUS "${PLAYER_NAME} disabled, please install sdl2 ffmpeg/libavcodec ffmpeg/libavutil ffmpeg/libswresample")
return()
endif () endif ()
aux_source_directory(. SRC_LIST) aux_source_directory(. SRC_LIST)