Skip to content

Commit cd00607

Browse files
author
Eric Woo
committed
temporarily permit cmake dev warnings under CI
... until upstream CPM fixes this warning: cpm-cmake/CPM.cmake#570
1 parent 41a3b5b commit cd00607

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.gitlab-ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ image: archlinux/archlinux:base-devel
33
.build_dependencies: &build_dependencies
44
- pacman --noconfirm -Sy cmake clang curl duktape pcre2
55

6+
# TODO: add -Werror=dev back: https://github.com/cpm-cmake/CPM.cmake/pull/570
67
.build_steps: &build_steps
7-
- cmake -Wdev -Werror=dev -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=1 . -B ./build
8+
- cmake -Wdev -Wno-error=dev -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=1 . -B ./build
89
- cmake --build ./build
910
- cd ./build/tests && ctest -E '^cli-try-sandbox$' .
1011

@@ -26,10 +27,11 @@ build_with_clang:
2627
- export CXX=clang++
2728
- *build_steps
2829

30+
# TODO: add -Werror=dev back: https://github.com/cpm-cmake/CPM.cmake/pull/570
2931
format:
3032
stage: build
3133
before_script:
3234
- *build_dependencies
3335
script:
34-
- cmake -Wdev -Werror=dev -DCMAKE_BUILD_TYPE=Debug . -B ./build
36+
- cmake -Wdev -Wno-error=dev -DCMAKE_BUILD_TYPE=Debug . -B ./build
3537
- cmake --build ./build --target fmt

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ add_executable(youtube-unthrottle)
1414
target_sources(youtube-unthrottle PUBLIC main.c)
1515
target_link_libraries(youtube-unthrottle PRIVATE sanitizers youtube my_cflags)
1616

17-
include(get_cpm) # TODO: https://github.com/cpm-cmake/CPM.cmake/pull/570
17+
include(get_cpm)
1818

1919
add_subdirectory(src)
2020
if (BUILD_TESTING)

0 commit comments

Comments
 (0)