robotology / yarp-matlab-bindings

SWIG-based bindings of YARP for Matlab and Octave, based on the MEX C-API.
6 stars 5 forks source link

Delete FindMatlab.cmake #82

Closed traversaro closed 2 years ago

traversaro commented 2 years ago

This ensure that we do not need to manually update MATLAB version for macOS users, as done in https://github.com/robotology/yarp-matlab-bindings/pull/81 . The last time we updated FindMatlab for reason outside adding version mappings is 2016 (see https://github.com/robotology/yarp-matlab-bindings/commit/cf0b0c3b5b4661985ca06483647e4eb6cd0b4032), so I think there should be no problem in this. Conda/homebrew users will get a recent CMake all the time, while apt users should not have problems in using an older FindMatlab.cmake .

lrapetti commented 2 years ago

Conda/homebrew users will get a recent CMake all the time

Sorry @traversaro, I might be missing a bit of background, but what do you mean by this?

traversaro commented 2 years ago

Conda/homebrew users will get a recent CMake all the time

Sorry @traversaro, I might be missing a bit of background, but what do you mean by this?

Both conda-forge and Homebrew are rolling-release distributions. This means that if one installs brew install cmake or mamba install cmake, he/she will install the latest CMake (differently from users of Linux distributions such as Ubuntu, in which the CMake version installed by apt install cmake is the latest available when the distro was released). So, if a macOS users install a new version of MATLAB and a new version of CMake, with all probability he/she will get a version of FindMatlab from CMake that will be able to deal with the latest Matlab.

lrapetti commented 2 years ago

Thanks @traversaro for the clarification! Indeed it makes sense to remove it.

traversaro commented 2 years ago

Actually we need to solve https://gitlab.kitware.com/cmake/cmake/-/issues/21912 before deleting FindMatlab .