Skip to content

cmake 3.31 is broken: CMake Error: Could not find CMAKE_ROOT !!! #557

Closed
@njzjz

Description

@njzjz

See this error in the CI, which can be reproduced:

CMake Error: Could not find CMAKE_ROOT !!!
CMake has most likely not been installed correctly.
Modules directory not found in
/usr/local/share/cmake-3.31
CMake Error: Error executing cmake::LoadCache(). Aborting.

reproduce:
https://gist.github.com/njzjz/1c8f360ebc4457bf0d0f6ea86978b78b

CI log: https://github.com/deepmodeling/deepmd-kit/actions/runs/11758764445/job/32757483294#step:3:1

Metadata

Metadata

Assignees

No one assigned

    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