commit | 15519bf876d5a5fee0c3553d0c4f5cddac2e0454 | [log] [tgz] |
---|---|---|
author | Carlos Gomes Martinho <kmartinho8@gmail.com> | Wed May 06 12:17:23 2020 +0200 |
committer | Jim Schaad <ietf@augustcellars.com> | Wed May 06 09:25:54 2020 -0700 |
tree | d24035b351b2c28a39d7b0589fd2796749898dcd | |
parent | b092dd707c4460ed0b71aa857fa8e6f4910173f3 [diff] |
build: add standard if not set
diff --git a/CMakeLists.txt b/CMakeLists.txt index 92cb794..52098fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -30,6 +30,10 @@ option(CN_CBOR_ALIGN_READS "Use memcpy in ntoh*p()" OFF) option(CN_CBOR_RUN_CLANG_TIDY "Use Clang-Tidy for static analysis" OFF) +if(NOT CMAKE_C_STANDARD) + set(CMAKE_C_STANDARD 11) +endif() + set(dist_dir ${CMAKE_BINARY_DIR}/dist) set(prefix ${CMAKE_INSTALL_PREFIX}) set(exec_prefix ${CMAKE_INSTALL_PREFIX}/bin)