Skip to content

Commit

Permalink
build: set c standard if not set
Browse files Browse the repository at this point in the history
  • Loading branch information
gocarlos committed Apr 28, 2020
1 parent 9223f01 commit 86baf39
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Expand Up @@ -50,6 +50,10 @@ set(exec_prefix ${CMAKE_INSTALL_PREFIX}/bin)
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)
Expand Down

0 comments on commit 86baf39

Please sign in to comment.