github-actions: replace autotools by cmake

This commit is contained in:
Marc Kleine-Budde
2024-05-29 21:02:59 +02:00
parent db2fe6a605
commit bc88e89caf
3 changed files with 66 additions and 19 deletions
+7
View File
@@ -12,6 +12,13 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release)
endif()
# Add an option to enable treating warnings as errors
option(ENABLE_WERROR "Treat all compiler warnings as errors" OFF)
if(ENABLE_WERROR)
add_compile_options(-Werror)
endif()
add_definitions(-D_GNU_SOURCE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wno-parentheses")