Require c11 support for our c compiler

This commit is contained in:
Andrew Noyes 2020-05-07 23:45:19 +00:00
parent 3964fe34b8
commit 202129d5a7
1 changed files with 1 additions and 0 deletions

View File

@ -81,6 +81,7 @@ include(CheckFunctionExists)
set(CMAKE_REQUIRED_INCLUDES stdlib.h malloc.h)
set(CMAKE_REQUIRED_LIBRARIES c)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_C_STANDARD 11)
if(WIN32)
# see: https://docs.microsoft.com/en-us/windows/desktop/WinProg/using-the-windows-headers