From 70cfb08323bd1653184b608f587ad12c9c970c41 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:02:48 +0800 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3315887..5798578 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,6 +5,10 @@ SET(CMAKE_BUILD_TYPE "Release") include_directories("/usr/local/include") link_directories("/usr/local/lib") +#在编译选项中加入c99支持 +add_compile_options(-std=c99) +message(STATUS "optional:-std=c99") + add_executable(cmoe cmoe.c) target_link_libraries(cmoe spb)