From caaf106b1c82a1cc83bd73aae1224aac2435a2cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bernhard=20=C3=9Cbelacker?= Date: Tue, 15 Sep 2026 13:59:31 +0200 Subject: [PATCH] Add to CMakeLists.txt a warning if jq package is missing. Fixes #4096 --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fe660b67b64..3d8afab5aff 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -456,6 +456,11 @@ foreach(py_module ${REQUIRED_PYTHON_MODULES}) endif() endforeach(py_module) +find_program(JQ jq) +if(${JQ} STREQUAL "JQ-NOTFOUND") + message(WARNING "Can't find 'jq' command, expect some tests to fail; install jq package? https://github.com/rr-debugger/rr/wiki/Building-And-Installing#tldr") +endif() + if(WILL_RUN_TESTS) # Check for gdb and lldb execute_process(COMMAND "gdb" "--version" RESULT_VARIABLE module_status OUTPUT_QUIET)