-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
Freeglut build failure on CMake 4.0.0 #44195
Comments
It works if I force it to use downloaded binaries (not sure why it's not doing this by default) : C:\Users\dgors\source\repos\vcpkg>set VCPKG_FORCE_DOWNLOADED_BINARIES=1 C:\Users\dgors\source\repos\vcpkg>vcpkg install freeglut
freeglut is compatible with built-in CMake targets:
Waiting for 1 remaining binary cache submissions... |
@davegorst This is an error caused by the fact that cmake 4.0 is not compatible with cmake versions below 3.5. Can you submit this to upstream, the upstream needs to modify the minimum version limit of cmake. |
Operating system
Windows 11
Compiler
MSVC
Steps to reproduce the behavior
Failure logs
"C:/Program Files/CMake/bin/cmake.exe" -E chdir "../../x64-windows-dbg" "C:/Program Files/CMake/bin/cmake.exe" "C:/Users/dgors/source/repos/vcpkg/buildtrees/freeglut/src/v3.4.0-a667d9a2c9.clean" "-G" "Ninja" "-DCMAKE_BUILD_TYPE=Debug" "-DCMAKE_INSTALL_PREFIX=C:/Users/dgors/source/repos/vcpkg/packages/freeglut_x64-windows/debug" "-DFETCHCONTENT_FULLY_DISCONNECTED=ON" "-DFREEGLUT_BUILD_STATIC_LIBS=0" "-DFREEGLUT_BUILD_SHARED_LIBS=1" "-DFREEGLUT_REPLACE_GLUT=ON" "-DFREEGLUT_BUILD_DEMOS=OFF" "-DINSTALL_PDB=OFF" "-DCMAKE_MAKE_PROGRAM=C:/Program Files/Microsoft Visual Studio/2022/Community/Common7/IDE/CommonExtensions/Microsoft/CMake/Ninja/ninja.exe" "-DBUILD_SHARED_LIBS=ON" "-DVCPKG_CHAINLOAD_TOOLCHAIN_FILE=C:/Users/dgors/source/repos/vcpkg/scripts/toolchains/windows.cmake" "-DVCPKG_TARGET_TRIPLET=x64-windows" "-DVCPKG_SET_CHARSET_FLAG=ON" "-DVCPKG_PLATFORM_TOOLSET=v143" "-DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_PACKAGE_REGISTRY=ON" "-DCMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY=ON" "-DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=TRUE" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DVCPKG_APPLOCAL_DEPS=OFF" "-DCMAKE_TOOLCHAIN_FILE=C:/Users/dgors/source/repos/vcpkg/scripts/buildsystems/vcpkg.cmake" "-DCMAKE_ERROR_ON_ABSOLUTE_INSTALL_DESTINATION=ON" "-DVCPKG_CXX_FLAGS=" "-DVCPKG_CXX_FLAGS_RELEASE=" "-DVCPKG_CXX_FLAGS_DEBUG=" "-DVCPKG_C_FLAGS=" "-DVCPKG_C_FLAGS_RELEASE=" "-DVCPKG_C_FLAGS_DEBUG=" "-DVCPKG_CRT_LINKAGE=dynamic" "-DVCPKG_LINKER_FLAGS=" "-DVCPKG_LINKER_FLAGS_RELEASE=" "-DVCPKG_LINKER_FLAGS_DEBUG=" "-DVCPKG_TARGET_ARCHITECTURE=x64" "-DCMAKE_INSTALL_LIBDIR:STRING=lib" "-DCMAKE_INSTALL_BINDIR:STRING=bin" "-D_VCPKG_ROOT_DIR=C:/Users/dgors/source/repos/vcpkg" "-D_VCPKG_INSTALLED_DIR=C:/Users/dgors/source/repos/vcpkg/installed" "-DVCPKG_MANIFEST_INSTALL=OFF"
CMake Error at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-- Configuring incomplete, errors occurred!
ninja: build stopped: subcommand failed.
C:\Users\dgors\source\repos\vcpkg>"C:/Program Files/CMake/bin/cmake.exe" -version
cmake version 4.0.0-rc2
CMake suite maintained and supported by Kitware (kitware.com/cmake).
Additional context
No response
The text was updated successfully, but these errors were encountered: