Fix: In had scanner is always building

cmake is case sensitive, the build variable didn't get set.