cmake: make build type check insensitive to case