From 6f01329e9d575126d74319650d0c4c48877c5bf4 Mon Sep 17 00:00:00 2001 From: Benedikt Streicher Date: Wed, 20 Mar 2024 16:23:41 +0100 Subject: [PATCH] cmake: sca: codechecker: search for 'CodeChecker' and 'codechecker' Let find_program in codechecker/sca.cmake search for both 'CodeChecker' and 'codechecker'. Before this change, I wasn't able to run CodeChecker because cmake couldn't find it. (Ubuntu 23.10, CodeChecker 6.21.0 installed via snap) Signed-off-by: Benedikt Streicher --- cmake/sca/codechecker/sca.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/sca/codechecker/sca.cmake b/cmake/sca/codechecker/sca.cmake index fd7d18ecea..eeea193371 100644 --- a/cmake/sca/codechecker/sca.cmake +++ b/cmake/sca/codechecker/sca.cmake @@ -2,7 +2,7 @@ # # Copyright (c) 2023, Basalte bv -find_program(CODECHECKER_EXE CodeChecker REQUIRED) +find_program(CODECHECKER_EXE NAMES CodeChecker codechecker REQUIRED) message(STATUS "Found SCA: CodeChecker (${CODECHECKER_EXE})") # CodeChecker uses the compile_commands.json as input