From b926b606124da24aabc6c89652844203df78c784 Mon Sep 17 00:00:00 2001 From: NeroBurner Date: Tue, 10 Jun 2025 14:41:16 +0200 Subject: [PATCH 1/3] OpenBLAS: silence warnings (#792) The OpenBLAS build has uncountable many warnings. Disable them as we don't need them. Only errors are really interesting. --- cmake/projects/OpenBLAS/hunter.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmake/projects/OpenBLAS/hunter.cmake b/cmake/projects/OpenBLAS/hunter.cmake index 89fb5dd6bf..d5c092229c 100644 --- a/cmake/projects/OpenBLAS/hunter.cmake +++ b/cmake/projects/OpenBLAS/hunter.cmake @@ -115,12 +115,21 @@ else() # https://github.com/xianyi/OpenBLAS/releases/tag/v0.3.21 set(_openblas_BUILD_WITHOUT_LAPACK "OFF") endif() + # silence warnings on OpenBLAS build + if(CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "GNU") + set(_openblas_cflags "CMAKE_C_FLAGS=-w") + elseif(MSVC) + set(_openblas_cflags "CMAKE_C_FLAGS=/W0") + else() + set(_openblas_cflags) + endif() hunter_cmake_args( OpenBLAS CMAKE_ARGS BUILD_TESTING=OFF NOFORTRAN=1 BUILD_WITHOUT_LAPACK=${_openblas_BUILD_WITHOUT_LAPACK} + ${_openblas_cflags} ) hunter_pick_scheme(DEFAULT url_sha1_cmake) set(_openblas_unrelocatable_text_files "") From 792b26db5a21cee9263bcd3dda1b5a37767c4f7d Mon Sep 17 00:00:00 2001 From: NeroBurner Date: Tue, 10 Jun 2025 14:44:15 +0200 Subject: [PATCH 2/3] docs: fix warning about matrix.json not valid for code highlighting (#793) Fixing the following warning: ```sh Warning, treated as error: hunter/docs/creating-new/test/ci.rst:84:Could not lex literal_block as "JSON". Highlighting skipped. ``` The referenced codeblock is the following: ```rst .. literalinclude:: ../../../.github/workflows/ci/matrix.json :language: JSON ``` The `matrix.json` file contains `//` comments, which are not valid json tripping the highlighting. Removing the `:language: JSON` part fixes this warning Fixes: https://github.com/cpp-pm/hunter/issues/790 --- docs/creating-new/test/ci.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/docs/creating-new/test/ci.rst b/docs/creating-new/test/ci.rst index 282818cab3..ce71601bf4 100644 --- a/docs/creating-new/test/ci.rst +++ b/docs/creating-new/test/ci.rst @@ -82,7 +82,6 @@ Build matrix This will lead to you project testing toolchains diverge from default ones in the future. .. literalinclude:: ../../../.github/workflows/ci/matrix.json - :language: JSON Each line defines parameters for a job that will run on `GitHub-hosted runner `__: From 7c692a0421b7b525e15942a2a650ed52a6b51d66 Mon Sep 17 00:00:00 2001 From: NeroBurner Date: Tue, 10 Jun 2025 14:57:56 +0200 Subject: [PATCH 3/3] docs: msgpack: fix spelling warnings/errors (#795) The documentation for `msgpack` has two spelling errors: ``` writing output... [ 63%] packages/pkg/msgpack packages/pkg/msgpack.rst:21:msgpackc:["mudpack"] packages/pkg/msgpack.rst:21:cxx:["xxx", "xx", "cox", "c xx", "OSX"] ... Spelling checker messages written to /home/runner/work/hunter/hunter/docs/_spelling/output.txt Warning, treated as error: Found 2 misspelled words ``` Update the documentation properly escaping the target names and in the process making the spellchecker ignoring the "codeblocks". Fixes: https://github.com/cpp-pm/hunter/issues/794 --- docs/packages/pkg/msgpack.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/packages/pkg/msgpack.rst b/docs/packages/pkg/msgpack.rst index 5b0b3e8a22..76675465b5 100644 --- a/docs/packages/pkg/msgpack.rst +++ b/docs/packages/pkg/msgpack.rst @@ -1,6 +1,7 @@ .. spelling:: msgpack + msgpackc .. index:: unsorted ; msgpack @@ -18,7 +19,7 @@ msgpack - Added by `Antal Tátrai `__ (`pr-406 `__) - Available since |hunter| -- Target library name from "msgpack::msgpack" to "msgpackc-cxx" with `v4.1.3` +- Target library renamed from ``msgpack::msgpack`` to ``msgpackc-cxx`` with ``v4.1.3`` .. code-block:: cmake