From 140c057a5bb6145bd94a46e2c9f4728cd142db85 Mon Sep 17 00:00:00 2001 From: sladro Date: Tue, 9 Dec 2025 11:09:51 +0800 Subject: [PATCH] Update CMakeLists.txt --- samples/mpp_decode_demo/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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()