From 61c454ee4d7029537870c24c7d24a4a49cc5d9b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Tue, 8 Jun 2021 20:04:08 +0800 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e0d2c5..922de10 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,10 +9,14 @@ ELSE() add_definitions("-DCPUBIT32") ENDIF() +#在编译选项中加入c99支持 +add_compile_options(-std=c99) +message(STATUS "optional:-std=c99") + include_directories("/usr/local/include") link_directories("/usr/local/lib") add_executable(simple-http-server server.c) target_link_libraries(simple-http-server pthread) -INSTALL(TARGETS simple-http-server RUNTIME DESTINATION bin) \ No newline at end of file +INSTALL(TARGETS simple-http-server RUNTIME DESTINATION bin)