Skip to content

Commit 1d9b189

Browse files
committed
Ensure that this code is built with C11.
We make use of C11 bits in various places. We need this to make the build with GCC work properly.
1 parent 4942d7e commit 1d9b189

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
cmake_minimum_required(VERSION 3.2)
22
project(cloudabi-utils)
33

4+
set(CMAKE_C_STANDARD_REQUIRED ON)
5+
set(CMAKE_C_STANDARD 11)
6+
47
include_directories("${PROJECT_SOURCE_DIR}/src/libcloudabi")
58

69
if(CMAKE_SYSTEM_PROCESSOR STREQUAL "amd64")

0 commit comments

Comments
 (0)