jbeder / yaml-cpp

A YAML parser and emitter in C++
MIT License
5.18k stars 1.86k forks source link

CMake warning when using FetchContent #1301

Open nilsvu opened 3 months ago

nilsvu commented 3 months ago

I'm getting this warning when using FetchContent_Declare as listed in the README:

 CMake Deprecation Warning at _deps/yaml-cpp-src/CMakeLists.txt:2 (cmake_minimum_required):
   Compatibility with CMake < 3.5 will be removed from a future version of
   CMake.

   Update the VERSION argument <min> value or use a ...<max> suffix to tell
   CMake that the project does not need compatibility with older versions.

Can this be fixed?