Add CMake workflow

This commit is contained in:
Doncho N. Gunchev 2026-02-07 15:51:42 +02:00
parent 6526f7ae04
commit 8c1d14093d
2 changed files with 78 additions and 3 deletions

View file

@ -50,8 +50,8 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
# Compiler/linker flags
set(CMAKE_C_FLAGS "-Wall -Wextra -Werror")
set(CMAKE_CXX_FLAGS "-Wall -Wextra -Werror")
set(CMAKE_C_FLAGS "-Wall -Wextra") # -Werror")
set(CMAKE_CXX_FLAGS "-Wall -Wextra") # -Werror")
# https://gcc.gnu.org/onlinedocs/gcc/Template-Instantiation.html#Template-Instantiation
@ -126,7 +126,7 @@ if (NOT benchmark_FOUND)
FetchContent_Declare(
benchmark
GIT_REPOSITORY https://github.com/google/benchmark.git
GIT_TAG v1.9.4
GIT_TAG v1.9.5
)
# Disable benchmark's own tests