cmake_minimum_required version is incompatible with CMake 4 and higher
I'm trying to build libxc@7.0.0
via Spack using cmake@master
. I'm using cmake@master
to test the new support for Nvidia Performance Libraries (NVPL).
I run into the following issue when building libxc@7.0.0
:
>> 15 CMake Error at CMakeLists.txt:10 (cmake_minimum_required):
16 Compatibility with CMake < 3.5 has been removed from CMake.
17
18 Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
19 to tell CMake that the project requires at least <min> but has been updated
20 to work with policies introduced by <max> or earlier.
CMake 4.0
removed compatibility with CMake <3.5
, therefore the build fails because libxc
uses 3.1
as minimum version.