-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Trying to build with cmake -S ./ -B ./build -A x64 and having this error
CMake Error at third_party/yaml-cpp/CMakeLists.txt:2 (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!I'm using Cmake version 4.0.1. If I set cmake_minimum_required(VERSION 4.0.0) in the CMakeLists.txt then I also get a bunch of errors. The whole output:
-- Selecting Windows SDK version 10.0.22000.0 to target Windows 10.0.19045.
CMake Deprecation Warning at third_party/gfx/third_party/D3D12MemoryAllocator/CMakeLists.txt:1 (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.
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- D3D12MA_BUILD_SAMPLE = OFF
CMake Deprecation Warning at third_party/gfx/third_party/glm/CMakeLists.txt:1 (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 third_party/gfx/third_party/glm/CMakeLists.txt:2 (cmake_policy):
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.
-- GLM: Version 1.0.0
-- GLM: AVX2 instruction set
CMake Deprecation Warning at third_party/gfx/third_party/tinyexr/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.
-- AVX2 backend - ON
-- SSE4.1 backend - OFF
-- SSE2 backend - OFF
-- NEON backend - OFF
-- NONE backend - OFF
-- NATIVE backend - OFF
-- Invariance - ON
-- Shared libs - OFF
-- Decompressor - OFF
-- Diagnostics - OFF
-- ASAN - OFF
-- Unit tests - OFF
CMake Error at C:/Program Files/CMake/share/cmake-4.0/Modules/ExternalProject/shared_internal_commands.cmake:1002 (_ep_write_gitclone_script):
_ep_write_gitclone_script Function invoked with incorrect arguments for
function named: _ep_write_gitclone_script
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:1690 (_ep_add_download_command)
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:1607 (__FetchContent_populateDirect)
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:2145:EVAL:2 (__FetchContent_doPopulation)
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:2145 (cmake_language)
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:2384 (__FetchContent_Populate)
CMakeLists.txt:35 (FetchContent_MakeAvailable)
CMake Error at build/CMakeFiles/fc-tmp/cli11/download.cmake:7 (include):
include could not find requested file:
C:/Users/Admin/Documents/GitHub/Capsaicin/build/CMakeFiles/fc-tmp/cli11/cli11-gitclone.cmake
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:1753 (include)
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:1706 (__FetchContent_doStepDirect)
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:1607 (__FetchContent_populateDirect)
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:2145:EVAL:2 (__FetchContent_doPopulation)
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:2145 (cmake_language)
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:2384 (__FetchContent_Populate)
CMakeLists.txt:35 (FetchContent_MakeAvailable)
CMake Deprecation Warning at third_party/cli11/CMakeLists.txt:1 (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 Error at C:/Program Files/CMake/share/cmake-4.0/Modules/ExternalProject/shared_internal_commands.cmake:1002 (_ep_write_gitclone_script):
_ep_write_gitclone_script Function invoked with incorrect arguments for
function named: _ep_write_gitclone_script
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:1690 (_ep_add_download_command)
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:1607 (__FetchContent_populateDirect)
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:2145:EVAL:2 (__FetchContent_doPopulation)
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:2145 (cmake_language)
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:2384 (__FetchContent_Populate)
CMakeLists.txt:50 (FetchContent_MakeAvailable)
CMake Error at build/CMakeFiles/fc-tmp/yaml-cpp/download.cmake:7 (include):
include could not find requested file:
C:/Users/Admin/Documents/GitHub/Capsaicin/build/CMakeFiles/fc-tmp/yaml-cpp/yaml-cpp-gitclone.cmake
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:1753 (include)
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:1706 (__FetchContent_doStepDirect)
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:1607 (__FetchContent_populateDirect)
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:2145:EVAL:2 (__FetchContent_doPopulation)
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:2145 (cmake_language)
C:/Program Files/CMake/share/cmake-4.0/Modules/FetchContent.cmake:2384 (__FetchContent_Populate)
CMakeLists.txt:50 (FetchContent_MakeAvailable)
CMake Error at third_party/yaml-cpp/CMakeLists.txt:2 (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