-
Notifications
You must be signed in to change notification settings - Fork 23
Cmake版本問題 #211
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
base: main
Are you sure you want to change the base?
Cmake版本問題 #211
Conversation
Cmake4.1.0已不再支援SDL2的cmakelist(3.0.0),因此我新增了一個判斷,若不符合則退版
更正版,上一版commit到我自己的版本了,此版才是正確的
|
clang-tidy review says "All clean, LGTM! 👍" |
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.
why does the diff look like this? is there something wrong w/ the linebreak or something?
我今天使用CMAKE(version 4.1.0)建置時會出現錯誤,上面的提示是寫說4.1.0已不再支援3.5.0以下的cmake(SDL2的cmakelist 要求的版本是3.0.0),所以我新增了一個判斷是當版本為4.0.0以上時退版成3.5.0 |
|
Please also address and fix the sussy diff issue. |
更正版本+刪除註解
|
clang-tidy review says "All clean, LGTM! 👍" |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
我更正了大部分的錯誤,但換行導致的問題我無法解決 |
Co-authored-by: Du-Brandon <84231196+Du-Brandon@users.noreply.github.com>
…a133-e43bff2c47cd
|
clang-tidy review says "All clean, LGTM! 👍" |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
|
clang-tidy review says "All clean, LGTM! 👍" |
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.
IWOMM.
CMake 4.1.1
GarudaLinux
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.
Pull Request Overview
This PR addresses a compatibility issue between CMake 4.1.0 and SDL2's CMakeLists (3.0.0) by adding version checks and policy configurations to ensure backward compatibility.
- Adds CMake version detection for versions 4.0 and above
- Sets policy CMP0000 to NEW for newer CMake versions
- Establishes minimum policy version to 3.5
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Wait, it doesn't seem like it was your script make it runnable. Taking a deep look, please hold on.
可以請你提供 CMake 4.1.0 以上不再支援的文件或是你跑失敗的 Log 嗎?我這邊用 CMake 4.1.1 版本用 2866935 可以成功架好環境 |




Cmake4.1.0已不再支援SDL2的cmakelist(3.0.0),因此我新增了一個判斷,若不符合則退版。