Skip to content

[Issue]: Issue with Cmake 4.0 #311

Open
@assistant-librarian

Description

@assistant-librarian

[Migrated from original issue] ROCm/hipBLASLt#1939

Original issue author: @phambinhfin

Problem Description

Description:

The build system fails when using CMake 4.0 due to deprecated or removed features that are no longer supported in this version. Specifically, the use of cmake_policy(SET CMP0037 OLD) and a reserved target name install causes configuration errors.

CMake Error at CMakeLists.txt:70 (cmake_policy):
  Policy CMP0037 may not be set to OLD behavior because this version of CMake
  no longer supports it.

CMake Error at CMakeLists.txt:73 (add_custom_target):
  The target name "install" is reserved or not valid for certain CMake
  features, such as generator expressions, and may result in undefined
  behavior.

Operating System

Ubuntu 24.04.2 LTS

CPU

AMD EPYC 9575F 64-Core Processor

GPU

Other

Other

MI300X

ROCm Version

ROCm 6.2.3

ROCm Component

No response

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions