FindMatlab: Make Matlab_HAS_CPP_API optional in matlab_add_mex
The updated version of FindMatlab now includes additional support for the C++ mex API, but the changes break the compilation of mex libraries that use the C interface. The Matlab_HAS_CPP_API variable should be optional.
Edited by Brad King