3.18.0 was rejected from brew without patch due to emacs install
CMake 3.18.0 was rejected without patch from brew here https://github.com/Homebrew/homebrew-core/pull/58002
As of 2642f432 CMake installs the emacs file to ${CMAKE_XDGDATA_DIR}/emacs/site-lisp
rather than ${CMAKE_DATA_DIR}/editors/emacs
. Brew seem to require it be installed to ${CMAKE_XDGDATA_DIR}/emacs/site-lisp/cmake
.
To be honest I do not know enough about emacs to be able to say what the fix should be? Should cmake install to a cmake/
subdir?