Skip to content

Building with CMake 4 requires -DCMAKE_POLICY_VERSION_MINIMUM=3.5 #564

@footballhead

Description

@footballhead

cmake output snippet:

-- DXC_PATH: C:\VulkanSDK\1.4.313.0\Bin\dxc.exe
-- Looking for GLSLC
-- GLSLC_PATH not set. Looking for Vulkan SDK path in ENV
-- Looking for GLSLC - found
-- GLSLC_PATH: C:\VulkanSDK\1.4.313.0\Bin\glslc.exe
No PPX target plaform specified - configuring based on current host
Target platform       : Windows
Graphics API D3D12    : TRUE
Graphics API Vulkan   : TRUE
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - not found
-- Found Threads: TRUE
-- Using Win32 for window creation
CMake Error at third_party/cpu_features/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!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions