Using 'scan-build' with 'cmake' projects

Hi.

Im trying to run 'scan-build' on a project (unity) that uses 'cmake'
instead of GNU make. However, I just cant seem to get scan-build to
use clang instead of cmake. Is this even possible ? And if so, how do
I do this ?

Thanks in advance,

Regards,

John Smith.

Right, because CMake is not a make replacement but Makefile or
Xcode project generator.

Have you tried scan-build on "make" stage of cmake project build?