License of Generated Code Clarity

230 views
Skip to first unread message

joshua...@gmail.com

unread,
Dec 21, 2022, 2:17:30 PM12/21/22
to CasADi
In the license file of the casadi repo, there are no statements discussing/distinguishing the generated code vs casadi source code. 
https://github.com/casadi/casadi/blob/master/LICENSE.txt

Would it be possible to include something here to make it clear that generated code is license free? Right now besides a forum post, the only justifcation I see is this at the top of generated files

/* This file was automatically generated by CasADi.

   The CasADi copyright holders make no ownership claim of its contents. */

But I'm not sure this is a strong enough statement.

joshua...@gmail.com

unread,
Feb 10, 2023, 1:31:42 PM2/10/23
to CasADi
Just wanted to check in on this topic to see if it possible to update the License.txt file to explicity state that the generated code from Casadi does not have the same restrictions as the library itself (LGPL3).

Joel Andersson

unread,
Feb 13, 2023, 11:45:47 AM2/13/23
to CasADi
I think that the only thing that is a bit ambiguous is the licensing of the "C runtime" located at https://github.com/casadi/casadi/tree/master/casadi/core/runtime. These functions are written in a special way to allow them both be called directly from the rest of the C++ code in CasADi, but they are also automatically turned into template strings by the build systems and then inserted into the generated code after some substitutions. Those are the only thing in the generated code that could be considered "original work" and they are currently licensed under LGPL3, like the rest of CasADi. So I guess what we could do is to:

1. Add a LICENSE.txt file in https://github.com/casadi/casadi/tree/master/casadi/core/runtime, with a more permissive license than LGPL3. Maybe MIT license?

2. Change the autogenerated header in generated code to something like:

/* This file was automatically generated by CasADi.

  The CasADi copyright holders make no ownership claim of autogenerated content.

  Any templated code inserted in this file retains its original license (MIT License, cf. "casadi/core/runtime/LICENSE.txt" in the CasADi codebase).

 */


Would that make sense?

Joel

Joel Andersson

unread,
Feb 22, 2023, 6:18:10 PM2/22/23
to CasADi
Joris and I decided to go for an approach like this, cf. https://github.com/casadi/casadi/issues/3015.
It will be included in the upcoming release (3.6). For any further discussion, please comment on that Github issue.

To be clear, this is not a restriction of the current licensing. It's just clarifying that we don't expect the template code used in generated code is no longer LGPL.

Best regards,
Joel

Joel Andersson

unread,
Apr 10, 2023, 6:32:17 AM4/10/23
to CasADi
Note that the license was clarified in 3.6.0. For further discussion, please use the new forum in Github Discussion.

Joel


Reply all
Reply to author
Forward
0 new messages