Skip to content

MATLAB mex.cmake file needs to be re-pulled #40

@crheckman

Description

@crheckman

Currently matlab/mex.cmake is buggy with newer versions of CMake. The error thrown is:

CMake Error at matlab/mex.cmake:313 (add_library):
  Target "calibu_mex" links to item "-arch x86_64
  -Wl,-syslibroot,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-migrator/sdk/MacOSX.sdk
  -mmacosx-version-min=11 -L/Applications/MATLAB_R2014b.app/bin/maci64 -lmx
  -lmex -lmat -ldl " which has leading or trailing whitespace.  This is now
  an error according to policy CMP0004.
Call Stack (most recent call first):
  matlab/CMakeLists.txt:13 (add_mex)

We can fix this problem by pulling from an upstream version of the file once it's fixed, but I haven't been able to find a completely error-free version quite yet.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions