cmake project() requirement

Yes, that probably appears to work because the variable setting is visible, but the compiler detection almost certainly didn’t use it.