From cd00607a1393f9536368ef06c17dc4f112fbb6ca Mon Sep 17 00:00:00 2001 From: Eric Woo <9374292-ewoo@users.noreply.gitlab.com> Date: Sun, 14 Jul 2024 21:36:22 -0700 Subject: [PATCH] temporarily permit cmake dev warnings under CI ... until upstream CPM fixes this warning: https://github.com/cpm-cmake/CPM.cmake/pull/570 --- .gitlab-ci.yml | 6 ++++-- CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c7c644e..caad001 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,8 +3,9 @@ image: archlinux/archlinux:base-devel .build_dependencies: &build_dependencies - pacman --noconfirm -Sy cmake clang curl duktape pcre2 +# TODO: add -Werror=dev back: https://github.com/cpm-cmake/CPM.cmake/pull/570 .build_steps: &build_steps - - cmake -Wdev -Werror=dev -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=1 . -B ./build + - cmake -Wdev -Wno-error=dev -DCMAKE_BUILD_TYPE=Debug -DBUILD_TESTING=1 . -B ./build - cmake --build ./build - cd ./build/tests && ctest -E '^cli-try-sandbox$' . @@ -26,10 +27,11 @@ build_with_clang: - export CXX=clang++ - *build_steps +# TODO: add -Werror=dev back: https://github.com/cpm-cmake/CPM.cmake/pull/570 format: stage: build before_script: - *build_dependencies script: - - cmake -Wdev -Werror=dev -DCMAKE_BUILD_TYPE=Debug . -B ./build + - cmake -Wdev -Wno-error=dev -DCMAKE_BUILD_TYPE=Debug . -B ./build - cmake --build ./build --target fmt diff --git a/CMakeLists.txt b/CMakeLists.txt index 75fa573..9dbb03f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,7 +14,7 @@ add_executable(youtube-unthrottle) target_sources(youtube-unthrottle PUBLIC main.c) target_link_libraries(youtube-unthrottle PRIVATE sanitizers youtube my_cflags) -include(get_cpm) # TODO: https://github.com/cpm-cmake/CPM.cmake/pull/570 +include(get_cpm) add_subdirectory(src) if (BUILD_TESTING)