-
Notifications
You must be signed in to change notification settings - Fork 185
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
CSharp fixes #4893
CSharp fixes #4893
Conversation
.github/workflows/buildCSharp.yml
Outdated
with: | ||
ref: master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- TODO: REVERT
add_library(csharp_warnings INTERFACE) | ||
target_compile_options(csharp_warnings INTERFACE "$<${is_msvc_genex}:/wd4996>") | ||
target_compile_options(csharp_warnings INTERFACE "$<${is_msvc_genex}:/bigobj>") | ||
target_compile_options(csharp_warnings INTERFACE "$<${is_gnu_or_clang_genex}:-Wno-deprecated-declarations>") | ||
target_compile_options(csharp_warnings INTERFACE "$<${is_gnu_or_clang_genex}:-Wno-unused-function>") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What?! Modern Cmake?! Yep!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyways, the only new flag is -Wno-unused-function
. But I'm using an interface library to avoid polluting the global namespace via add_definitions
PRIVATE | ||
openstudiolib | ||
csharp_warnings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And linking to that interface lib. And making the linkage PRIVATE for openstudiolib, another modern cmake practice which we already have in some places
PRIVATE | ||
openstudiolib | ||
csharp_warnings |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and again for the rest of the csharp libs
Dammmmmm I'm so dumb! I couldn't understand why the CMakeLists.txt changes fixed the build on my machine but not on Github Actions... I'm specifically building branch |
Ok, the 3.6.1 CSharp bindings can be found on https://github.com/NREL/OpenStudio/actions/runs/5077752228 @tijcolem can you upload them to https://www.nuget.org/packages/OpenStudio please? @MingboPeng FYI, if you want to reupload the platform specific one |
…g patched csharp/CMakeLists.txt" This reverts commit 70cf714.
Pull request overview
Fix 3.6.1 Csharp workflow that failed due to a Wunused-function warning. (likely because of updated compiler or something)
Pull Request Author
src/model/test
)src/energyplus/Test
)src/osversion/VersionTranslator.cpp
)Labels:
IDDChange
APIChange
Pull Request - Ready for CI
so that CI builds your PRReview Checklist
This will not be exhaustively relevant to every PR.