Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libember_slim/cmake/modules/EnableWarnings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ if (NOT ENABLE_WARNINGS_INCLUDED)

function(enable_warnings_on_target target)
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang|GNU")
target_compile_options(${target} PRIVATE -Wall -Wextra -Wunreachable-code -Wpedantic -Wno-long-long)
target_compile_options(${target} PRIVATE -Wall -Wextra -Wunreachable-code -Wpedantic -Wno-long-long -std=c17)
endif()

if ( CMAKE_CXX_COMPILER_ID MATCHES "MSVC" )
Expand Down
3 changes: 3 additions & 0 deletions premake4.lua
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ solution "EmberPlus SDK"
configuration { "not windows" }
targetname "ember_slim"

configuration { "gmake or not windows" }
buildoptions { "-std=c17" }

-- Common settings for all static library configurations of this project
configuration { "*Static" }
kind "StaticLib"
Expand Down