diff options
author | Cris Luengo <cris.l.luengo@gmail.com> | 2018-10-29 05:07:26 (GMT) |
---|---|---|
committer | Cris Luengo <cris.l.luengo@gmail.com> | 2018-10-29 05:12:26 (GMT) |
commit | ee73e733e4ae7a1fe36c3010d8789de4d37dcc1c (patch) | |
tree | 87079ba376558e22cb2fb591ff139417d59ad02c /Tests/FindMatlab/matlab_wrapper2.cpp | |
parent | 160499296c61b0edf2e6b08c44b31444e022528f (diff) | |
download | CMake-ee73e733e4ae7a1fe36c3010d8789de4d37dcc1c.zip CMake-ee73e733e4ae7a1fe36c3010d8789de4d37dcc1c.tar.gz CMake-ee73e733e4ae7a1fe36c3010d8789de4d37dcc1c.tar.bz2 |
FindMatlab: Fix compilation error in one specific test configuration.
`matlab_wrapper2.cpp` failed to compile in one specific test configuration.
I've copied an odd workaround from `matlab_wrapper1.cpp`, which doesn't fail
to compile. I presume this workaround was meant to address this issue, but
can't verify this locally.
Diffstat (limited to 'Tests/FindMatlab/matlab_wrapper2.cpp')
-rw-r--r-- | Tests/FindMatlab/matlab_wrapper2.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/FindMatlab/matlab_wrapper2.cpp b/Tests/FindMatlab/matlab_wrapper2.cpp index 8b73ade..e768fbf 100644 --- a/Tests/FindMatlab/matlab_wrapper2.cpp +++ b/Tests/FindMatlab/matlab_wrapper2.cpp @@ -1,3 +1,9 @@ + +// simple workaround to some compiler specific problems +// see +// http://stackoverflow.com/questions/22367516/mex-compile-error-unknown-type-name-char16-t/23281916#23281916 +#include <algorithm> + #include "mex.h" // This test uses the new complex-interleaved C API (R2018a and newer) |