Allow opt-out of Matlab mex compilation
This MR adds a new ENABLE_MATLAB_MEX_COMPILE
cmake variable, which defaults to yes
, to allow builders to opt out of compiling the Matlab sources with mex
.
This is useful for RPM/Debian/Conda builds where we might want to provide the Matlab source, but can't compile things when building packages.