cmake: add default Werror, extract version only from GITHUB_REF if tag
This commit is contained in:
parent
3ac90c382e
commit
e51895fa18
3 changed files with 3 additions and 3 deletions
|
@ -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})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue