"CMake Deprecation Warning... Update the VERSION argument <min> value" because too old MIN version
Hi ! Thanks to picking up this project, I think it's the best option Today for a C project specially if you use CMake for building your project. I having this warning when using CMake v4.1.2 though, that doesn't prevent the project to be constructed when executing `cmake ..`, but it's an indicator that at some point it may happen with newer versions of CMake: ``` -- The C compiler identification is GNU 13.3.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done CMake Deprecation Warning at build/_deps/cunit-src/CMakeLists.txt:3 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier. CMake Deprecation Warning at build/_deps/cunit-src/CUnit/CMakeLists.txt:18 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument <min> value. Or, use the <min>...<max> syntax to tell CMake that the project requires at least <min> but has been updated to work with policies introduced by <max> or earlier. -- Configuring done (0.9s) -- Generating done (0.0s) -- Build files have been written to: build ``` This is the way I've configured CUnit in my project: ```cmake FetchContent_Declare( cunit URL https://gitlab.com/cunity/cunit/-/archive/3.5.2/cunit-3.5.2.tar.gz URL_HASH SHA256=c44c4a4d222175c600ec08c71f7e7d4a77fa8463cfbac3ea596e5ad29ff3bcb6 ) FetchContent_MakeAvailable(cunit) enable_testing() ``` Your project supports CMake as minimum as 3.5, which is more than 7 years old, consider updating it to a more modern version, not necessarily the latest, or use the trick suggested in the warning to setup also a max version, that doesn't mean newer version are not supported but "has been updated to work with policies introduced by or earlier".
issue