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)