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

[BugFix] OpenFAST Registry on Windows #1618

Merged
merged 3 commits into from
Jun 9, 2023

Conversation

deslaughter
Copy link
Collaborator

@deslaughter deslaughter commented Jun 9, 2023

This PR is ready to be merged.

Feature or improvement description
This PR resolves several issues with building the new OpenFAST Registry (C++) on Windows. The dependency on std::filesystem has been removed so it is compatible with older compilers (tested with VS2015). It also fixes a Visual Studio compiler issue with the strings in templates.hpp being too long.

Secondly it fixes an issue with the MAP library which occurs when combining C and Fortran sources in a single library and then generating a Visual Studio Solution via CMake. This is accomplished by splitting MAP into C and Fortran libraries. This requires that both libraries are added to the Simulink project.

Impacted areas of the software

  • OpenFAST Registry (C++
  • MAP
  • Simulink

This commit removes the dependency on std::filesystem which is not
well supported by all compilers. This will now compiler on VS2015.
This also fixes some bugs with generating templates and registry
files when beginning a new module.
Visual Studio can't handle mixing C and Fortran source in the same
library. This commit splits the C and Fortran into two libraries.
@deslaughter deslaughter requested review from andrew-platt and ebranlard and removed request for ebranlard June 9, 2023 19:30
Copy link
Contributor

@ebranlard ebranlard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing that. The previous version didn't compile on windows, either using Visual Studio or using cmake & msys2. With these changes, it now works.

@deslaughter deslaughter requested review from ebranlard and removed request for andrew-platt June 9, 2023 20:02
@deslaughter deslaughter merged commit 82126e6 into OpenFAST:dev-unstable-pointers Jun 9, 2023
@deslaughter deslaughter deleted the b/ofreg branch June 9, 2023 20:02
@andrew-platt
Copy link
Collaborator

Thanks for fixing this!

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.

3 participants