Use alternative way to suppress CMP0022 warning. Closes 287.