Skip to content

vs-build: change OpenFAST-Simulink target name#3299

Open
andrew-platt wants to merge 1 commit intoOpenFAST:rc-5.0.1from
andrew-platt:b/OF-Simulink_mexName
Open

vs-build: change OpenFAST-Simulink target name#3299
andrew-platt wants to merge 1 commit intoOpenFAST:rc-5.0.1from
andrew-platt:b/OF-Simulink_mexName

Conversation

@andrew-platt
Copy link
Copy Markdown
Collaborator

Ready to merge.

Feature or improvement description
Changed build target release name from OpenFAST-Simulink_Matlab_Release.dll to OpenFAST-Simulink.dll

During the deploy step on GitHub, the mex function build call uses the OpenFAST-Simulink_Matlab_Release.lib file to set the name of the linked DLL. However, we rename the DLL itself to not include _Matlab_Release in the name, but the .lib file still contains this. This causes a discrepancy between the linked name in the mexw64 and the provided DLL.

Rather than hack the .lib file to change the name in there, we'll simply modify the vfproj file to produce the OpenFAST-Simulink.dll and corresponding .lib file with the correct name information in it.

Related issue, if one exists
This fixes issue #3274

Impacted areas of the software
This really only affects the automated Windows builds for the Matlab Simulink mex function.

Additional supporting information
The alternative approach would be to not rename the resulting dll file for Simulink, but this approach is simpler.

Generative AI usage
None

Test results, if applicable
No changes

…lab_Release.dll to OpenFAST-Simulink.dll

During the `deploy` step on GH, the `mex` call uses the `OpenFAST-Simulink_Matlab_Release.lib` file to set the name of the linked DLL.  However, we rename the dll itself to not include `_Matlab_Release` in the name, but the .lib file still contains this. This causes a descrepancy between the linked name in the mexw64 and the provided dll.

Rather than hack the .lib file to change the name in there, we'll simply modify the vfproj file to produce the OpenFAST-Simulink.dll and corresponding .lib file with the correct name information in it.

This fixes issue OpenFAST#3274
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant