Fixes for modern MOOS and Matlab #1
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This contains a collection of fixes.
Moos CMake changed to use the use the library namespacing convention. This updated this project's CMakeLists to handle that.
Matlab 2018 has asserts set to check that mex functions are being called from matlab threads. This library used to call mexPrintf from a moos thread on connection which would cause modern Matlab to exit with error output displayed. This PR simply removes the offending print statement.
There is/was some issue relating to rpaths. I don't know what it was but both Alex Stewart and Dan Barnes have written fixes and I combined both.
Recent CMake has built in FindMatlab support. This updates the CMakeLists to use CMake's own FindMatlab rather than providing our own.
This seems to work on OS X (Sierra, Mojave) and Ubuntu 16.
Matlab 2018 changed to use the C++11 std::string ABI. For this to work with Matlab 2018 you need to build both MOOS and this with the C++11 ABI. For earlier versions of Matlab you need to compile MOOS and this with the old ABI.