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

Always build openfastcpplib as shared. Use BUILD_OPENFAST_CPP_DRIVER to disable openfastcpp executable #2311

Merged

Conversation

deslaughter
Copy link
Contributor

This PR is ready to merge.

Feature or improvement description

This PR makes openfastcpplib always build as a shared library so BUILD_SHARED_LIBS=ON is not needed for AMR-WIND. This PR also uses BUILD_OPENFAST_CPP_DRIVER to control whether openfastcpp is built or not. Setting BUILD_OPENFAST_CPP_DRIVER=OFF and BUILD_OPENFAST_CPP_API=ON will allow openfastcpplib to be built for AMR-WIND without needing yaml-cpp which has been a problem on some platforms like Kestrel.

Related issue, if one exists

Impacted areas of the software

Only the openfast-cpp CMakeLists.txt was changed.

Additional supporting information

This change reuses BUILD_OPENFAST_CPP_DRIVER which previously only controlled if openfast_cpp_driver was built. It may be better to use a separate flag, but it would be difficult to find a better name since both of these executables are C++ drivers. Also, openfastcpp is only built when BUILD_OPENFAST_CPP_API=ON.

Test results, if applicable

No tests were affected

…to enable/disable openfastcpp so yaml-cpp isn't required for openfastcpplib
@andrew-platt andrew-platt merged commit d0f6154 into OpenFAST:rc-3.5.4 Jul 9, 2024
38 checks passed
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.

None yet

2 participants