mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-08-31 07:19:57 +00:00
Additional CMake flag for controlling C standard
Disable compiler-specific extensions (e.g. use --std=c11 instead of --std=gnu11). Signed-off-by: Dave Rodgman <[email protected]>
This commit is contained in:
@@ -170,6 +170,7 @@ string(REGEX MATCH "Clang" CMAKE_COMPILER_IS_CLANG "${CMAKE_C_COMPILER_ID}")
|
||||
|
||||
include(CheckCCompilerFlag)
|
||||
|
||||
set(CMAKE_C_EXTENSIONS OFF)
|
||||
set(CMAKE_C_STANDARD 99)
|
||||
|
||||
if(CMAKE_COMPILER_IS_GNU)
|
||||
|
||||
Reference in New Issue
Block a user