Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify embedded code CMake flow #17

Merged
merged 3 commits into from
Aug 26, 2019
Merged

Conversation

imciner2
Copy link
Member

This is the complimentary change to the CMake modifications done in the main OSQP repo (osqp/osqp#174) that create a per-source directory CMakeLists.txt file. This allows new files to be added without requiring changes on the embedded code generation side.

This modifies the embedded CMakeLists.txt to reference the new CMakeLists.txt files, and copy them into the generated code folder as well.

There is an additional commit in there to add the C99 flag to the emosqp mex call, since some Matlab versions still don't use it natively (e.g. my R2016b on Linux doesn't).

These should be the only changes needed in the Matlab interface. Python will need the same changes made.

For some reason, Mathworks doesn't have C99 enabled on older linux
versions, so it fails on the C++ style // comments.
This relies on the CMake created in the main OSQP repo now.
@gbanjac
Copy link
Collaborator

gbanjac commented Aug 26, 2019

Thanks! I have made equivalent edits in the Python interface.

@gbanjac gbanjac merged commit 60469df into osqp:cmake_fixes Aug 26, 2019
@imciner2 imciner2 deleted the cmake_fixes branch August 27, 2019 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants