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 <streicher.b@posteo.de>
This commit is contained in:
Benedikt Streicher 2024-03-20 16:23:41 +01:00 committed by Anas Nashif
parent 9d18a7cf90
commit 6f01329e9d

View file

@ -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