This PR adds a check in esma.cmake to make sure the CMAKE_INSTALL_PREFIX provided is writable. This is pretty hard to trigger for most people, but belt-and-suspenders is never a bad thing.
Inspired by @scivision in this post: https://www.scivision.dev/cmake-test-path-writable/ . His version is more elegant, but I was trying out GitHub Copilot and it suggested this. The AI code seems...reasonable.
This PR adds a check in
esma.cmake
to make sure theCMAKE_INSTALL_PREFIX
provided is writable. This is pretty hard to trigger for most people, but belt-and-suspenders is never a bad thing.Inspired by @scivision in this post: https://www.scivision.dev/cmake-test-path-writable/ . His version is more elegant, but I was trying out GitHub Copilot and it suggested this. The AI code seems...reasonable.