-
Notifications
You must be signed in to change notification settings - Fork 168
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
Visual Studio 2022でのCMakeの警告に対応 #1848
Conversation
この警告の有無でVSがどのバージョンか見分けていましたが、 サクラエディタ全体のCMakeではないと思うので、関数名を書いておきましたが "-DCMAKE_C_COMPILER=%CL_COMPILER%" |
❌ Build sakura 1.0.4138 failed (commit 1a043c6d51 by @dep5) |
対処方法が誤っているように見えました。
正しい対処は最後の一文「Use -Wno-dev to suppress it.」です。 ここのCMakeLists.txtは成果物を作らないので、projectを呼ばなくてもよいです。 バッチの修正は、明らかに使ってないので問題ないです。 |
sanomari さん |
✅ Build sakura 1.0.4143 completed (commit 973d463a08 by @dep5) |
Kudos, SonarCloud Quality Gate passed! |
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.
PR の目的
ビルド・リビルド時にこのような警告が出るので対応します。
新たに別の警告が出るので
これにも対応します。
カテゴリ
PR の背景
Visual Studio 2017では警告は出ませんが、Visual Studio 2022だと出るようになりました。
2019でも出ていたような気がします…
PR のメリット
PR のデメリット (トレードオフとかあれば)
仕様・動作説明
https://cmake.org/cmake/help/latest/command/project.html
警告の内容に従って、
project()-Wno-devを使っています。PR の影響範囲
Visual Studio 2017でも問題ないようです。
ビルドしてテストしてみました。
テスト内容
テスト1
手順
関連 issue, PR
参考資料