CMakeLists.txt: Bump cmake_minimum_required() to 3.10. Make code buil…#679
CMakeLists.txt: Bump cmake_minimum_required() to 3.10. Make code buil…#679sunweaver wants to merge 1 commit intoLibVNC:masterfrom
Conversation
…d with CMake 4 without deprecation warning (as of now).
|
Hi Mike! What's the improvement related to c81c7bd ? |
|
As someone who packages software, I hit this quite a bit with projects when we started using CMake > v4, requiring adding extra configure flags to override it https://fedoraproject.org/wiki/Changes/CMake4.0 is a good writeup Like https://cmake.org/cmake/help/latest/policy/CMP0054.html is a concrete example of cmake behavior would change from this. The main benefit of updating this is not just go rid of of a warning/error, but is in my opinion that everyone using cmake from 3.5 to 4.x will see the same behavior building libvncserver, ensuring things get tested properly. |
|
@Micket but this here PR ups the min required version to 3.10 - while it's a minor nitpick thing and I really don't want to think too much about it, I still wonder why. |
|
@bk138 CMake4 has stopped support for cmake_minimum_required() less than 3.5 (but throws a warning that versions between 3.5 and less than 3.10 will also likely be unsupported in some next version of CMake). |
|
Oh., nevermind me, I'm just blind! I thought the linked commit in the comment was from this PR. (I blame it on reading this at 3:00 AM) The actual policy change here would be https://cmake.org/cmake/help/latest/manual/cmake-policies.7.html#policies-introduced-by-cmake-3-10 si CMP0066 to CMP0071 but none of them would affect this project as far as i can see (maybe indirectly via find_package in some cases). |
…d with CMake 4 without deprecation warning (as of now).