From fcc475672f33af16dfe2e872bac5110af5bb1b45 Mon Sep 17 00:00:00 2001 From: fumiama Date: Sun, 6 Feb 2022 15:17:39 +0800 Subject: [PATCH] add option c99 --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a595323..9feda72 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,6 +13,10 @@ ENDIF() include_directories("/usr/local/include") link_directories("/usr/local/lib") +#在编译选项中加入c99支持 +add_compile_options(-std=c99) +message(STATUS "optional:-std=c99") + add_executable(simple-dict-server server.c dict.c crypto.c) add_executable(simple-dict-client client.c crypto.c) add_executable(migrate migrate.c)