Fix: In had scanner is always building

cmake is case sensitive, the build variable didn't get set.
Merge pull request #365 from fran6co/patch-2

Fix: In had scanner is always building