[Chapel Merge] Allow overriding cmake with CMAKE env var

Branch: refs/heads/main
Revision: 96fdeba
Author: mppf
Link: Allow overriding cmake with CMAKE env var by mppf · Pull Request #20206 · chapel-lang/chapel · GitHub
Log Message:

Merge pull request #20206 from mppf/allow-override-cmake

Allow overriding cmake with CMAKE env var

Follow-up to PR #19565.

On CentOS 7 we need to use cmake3.

Reviewed by @ronawho - thanks!