Skip to content

CMake Version Requirements for Fierro #292

@ClarkMyWords

Description

@ClarkMyWords

I am building Fierro on my Arch Linux computer, Linux kernel 6.15.4-arch2-1.

I am attempting to run the build-fierro.sh script within single-node-refactor/scripts

When I do I receive the following error:

CMake Error at src/material_models/equilibration/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.

Specifically, this file starts with the line:

cmake_minimum_required(VERSION 3.1.3)

If I manually edit this to read VERSION 3.5 and do the same in the following files:
single-node-refactor/CMakeLists.txt
single-node-refactor/src/material_mdoels/equilibration/CMakeLists.txt
single-node-refactor/src/common/CMakeLists.txt
single-node-refactor/src/input/CMakeLists.txt
single-node-refactor/src/Solvers/level_set_solver/CMakeLists.txt
single-node-refactor/src/Solvers/SGTM_solver_3D/CMakeLists.txt
single-node-refactor/src/Solvers/SGH_solver_rz/CMakeLists.txt
single-node-refactor/src/Solvers/SGH_solver_3D/CMakeLists.txt

If I edit all of these to have VERSION 3.5, then my build of Fierro succeeds

Output of cmake --version

cmake version 4.0.3-dirty

CMake suite maintained and supported by Kitware (kitware.com/cmake)

This is not a huge deal at all. If y'all are able to update those (and potentially others outside of the single-node-refactor directory, I did not check) that'd be great. Or if y'all could specify somewhere in the build steps which versions of CMake are supported, that's all that's necessary.

Thanks! Excited to get into using Fierro!

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions