We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9f2424a + 3edaf6b commit 96fa480Copy full SHA for 96fa480
examples/server/CMakeLists.txt
@@ -2,6 +2,9 @@ set(TARGET server)
2
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
3
add_executable(${TARGET} server.cpp json.hpp httplib.h)
4
target_compile_definitions(${TARGET} PRIVATE
5
+ # single thread
6
+ CPPHTTPLIB_THREAD_POOL_COUNT=1
7
+ # crash the server in the debug mode, otherwise send http 500 error
8
$<$<CONFIG:Debug>:
9
CPPHTTPLIB_NO_EXCEPTIONS=1
10
>
0 commit comments