- fail CMake configuration process if libvpx was not found

This helps to avoid #160
This commit is contained in:
alexey.lysiuk 2020-11-08 10:00:20 +02:00
parent 9e026d5042
commit 7f0d94798d

View file

@ -450,6 +450,8 @@ if( VPX_FOUND )
add_definitions( "-DUSE_LIBVPX=1" )
include_directories( "${VPX_INCLUDE_DIR}" )
set( PROJECT_LIBRARIES ${PROJECT_LIBRARIES} ${VPX_LIBRARIES} )
else()
message( SEND_ERROR "Could not find libvpx" )
endif()