From c53b7ef9a16c980d4f8feef7de50bec3a2bede25 Mon Sep 17 00:00:00 2001 From: hzq Date: Fri, 15 Nov 2024 09:51:05 +0800 Subject: [PATCH] fix CMakeLists.txt --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f5e1a1c..c88f1e3 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,6 +117,9 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/viewsrc/include) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/websockets/include) include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) +if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/bin/paozhu_pre) + file(REMOVE_RECURSE ${CMAKE_CURRENT_SOURCE_DIR}/bin/paozhu_pre) +endif() set(PAOZHU_PRE paozhu_pre) add_executable(${PAOZHU_PRE} ${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpcli/autopickmethod.cpp ${CMAKE_CURRENT_SOURCE_DIR}/vendor/httpserver/src/md5.cpp) @@ -192,7 +195,7 @@ else() endif() if (ENABLE_WIN_VCPKG STREQUAL "ON") -else () +else() add_custom_command( TARGET paozhu_pre POST_BUILD WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/