cmake: add default Werror, extract version only from GITHUB_REF if tag

This commit is contained in:
Konstantin Lampalzer 2024-09-25 21:54:46 +02:00
parent 3ac90c382e
commit e51895fa18
3 changed files with 3 additions and 3 deletions

View file

@ -24,7 +24,7 @@ project(
VERSION ${TAG_VERSION_MAJOR}.${TAG_VERSION_MINOR}.${TAG_VERSION_PATCH}
)
add_compile_options(-Wall -Wextra -Wpedantic)
add_compile_options(-Wall -Wextra -Wpedantic -Werror)
set(PACKAGE_VERSION ${TAG_VERSION_MAJOR}.${TAG_VERSION_MINOR}.${TAG_VERSION_PATCH})