diff --git a/CMakeLists.txt b/CMakeLists.txt index 3e73c2b..ef2d2ce 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,13 +54,5 @@ target_link_libraries(${APP_NAME} # 拷贝配置文件(仅在不存在时) add_custom_command(TARGET ${APP_NAME} POST_BUILD - COMMAND /bin/bash -c - "if [ ! -f \"$/${CONFIG_FILE}\" ]; then \ - mkdir -p \"$\" && \ - cp \"${CMAKE_SOURCE_DIR}/${CONFIG_EXAMPLE_FILE}\" \ - \"$/${CONFIG_FILE}\" && \ - echo \"config.json created from example\"; \ - else \ - echo \"config.json exists, keep it\"; \ - fi" + COMMAND bash -c "if [ ! -f \"$/${CONFIG_FILE}\" ]; then mkdir -p \"$\" && cp \"${CMAKE_SOURCE_DIR}/${CONFIG_EXAMPLE_FILE}\" \"$/${CONFIG_FILE}\" && echo \"config.json created from example\"; else echo \"config.json exists, keep it\"; fi" )