From 98e628887c27f9b4f98b7d7f9efe8e8df50b098d Mon Sep 17 00:00:00 2001 From: cxh Date: Thu, 20 Nov 2025 09:28:07 +0800 Subject: [PATCH] 1 --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d81b87d..c57ceb6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,5 +50,6 @@ target_link_libraries(camera_to_rtsp # 运行时把 config.json 复制到 bin/ 目录 add_custom_command(TARGET camera_to_rtsp POST_BUILD - COMMAND /bin/bash -c "if [ ! -f \"$/config.json\" ]; then cp \"${CMAKE_SOURCE_DIR}/config.json\" \"$/config.json\"; else echo 'config.json exists, skip copy'; fi" + COMMAND bash -c "if [ ! -f \"$/config.json\" ]; then cp \"${CMAKE_SOURCE_DIR}/config.json\" \"$/config.json\"; else echo config.json\ exists,\ skip\ copy; fi" ) +