feat set c standard 99
Some checks failed
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Failing after 51s
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Failing after 55s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Failing after 56s
linux-x64-gcc / linux-gcc (push) Failing after 56s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Failing after 1m4s
linux-mips64-gcc / linux-gcc-mips64el (push) Failing after 1m5s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Failing after 1m20s

This commit is contained in:
tqcq 2024-01-03 16:50:48 +08:00
parent c6a2dbac8d
commit ccd1f01e7c

View File

@ -1,7 +1,10 @@
cmake_minimum_required(VERSION 3.10)
project(ulib LANGUAGES CXX C VERSION 0.1.0)
set(CMAKE_CXX_STANDARD 98)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_STANDARD_REQUIRED ON)
set(CMAKE_C_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)