admin管理员组

文章数量:1406322

I want to install "glad" using the vcpkg with this command:

.\vcpkg.exe install glad:x64-windows

But got an error:

CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 has been removed from 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.
 
  Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
 
 
-- Configuring incomplete, errors occurred!

How to handle this error?

For completeness, the full output, and the files it references:

  • config-x64-windows-out.log
  • config-x64-windows-dbg-CMakeCache.txt
  • config-x64-windows-rel-CMakeCache.txt

I have CMake 4.0.0.

I tried to do bootstrap-vcpkg.bat and git pull in vcpkg directory but no dice.

本文标签: cmakeCannot install glad in vcpkgStack Overflow