diff --git a/samples/mpp_decode_demo/CMakeLists.txt b/samples/mpp_decode_demo/CMakeLists.txt index cfababd..c6700dd 100644 --- a/samples/mpp_decode_demo/CMakeLists.txt +++ b/samples/mpp_decode_demo/CMakeLists.txt @@ -15,9 +15,11 @@ else() if(NOT EXISTS ${MPP_TEST_SOURCE}) message(FATAL_ERROR "mpi_dec_test.c not found at ${MPP_TEST_SOURCE}. Verify RK_MPP_ROOT") endif() - if(NOT EXISTS ${MPP_UTIL_SOURCE}) - message(FATAL_ERROR "mpi_dec_utils.c not found at ${MPP_UTIL_SOURCE}. Verify RK_MPP_ROOT") - endif() + foreach(src ${MPP_UTIL_SOURCE}) + if(NOT EXISTS ${src}) + message(FATAL_ERROR "MPP util source not found at ${src}. Verify RK_MPP_ROOT") + endif() + endforeach() if(NOT RK_MPP_LIB_PATH) message(FATAL_ERROR "Set RK_MPP_LIB_PATH to the built librockchip_mpp.so for RK3588") endif()