commit | 7b19c2779e66785908c92ea49ae59b10cc13377f | [log] [tgz] |
---|---|---|
author | Carlos Gomes Martinho <carlos.gomes_martinho@siemens.com> | Tue Apr 28 14:47:25 2020 +0200 |
committer | Jim Schaad <ietf@augustcellars.com> | Tue Apr 28 08:35:01 2020 -0700 |
tree | 8d3b465e0c77f015cffff03fedd47ae6a50f9c94 | |
parent | 9223f01b6849a5991f384d5ae86b9bb6b9e69840 [diff] |
build: set c standard if not set
diff --git a/CMakeLists.txt b/CMakeLists.txt index 215201f..e39b91c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -50,6 +50,10 @@ set(libdir ${CMAKE_INSTALL_PREFIX}/lib) set(includedir ${CMAKE_INSTALL_PREFIX}/include) +if(NOT CMAKE_C_STANDARD) + set(CMAKE_C_STANDARD 11) +endif() + if(NOT CMAKE_BUILD_TYPE) if(COSE_C_OPTIMIZE) set(CMAKE_BUILD_TYPE MinSizeRel)