Skip to content

Commit

Permalink
fix CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
hggq committed Nov 15, 2024
1 parent 5d2976c commit c53b7ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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}/
Expand Down

0 comments on commit c53b7ef

Please sign in to comment.