Skip to content

[Feature]: [hipblaslt] Please update to Cmake 4.x #2080

@talumbau

Description

@talumbau

Suggestion Description

In projects/hipblaslt/deps/CMakeLists.txt there exists this code which overrides a policy for naming conventions in CMake targets. It is allowed to override the policy in Cmake 3x. It is not allowed to override the policy in Cmake 4.x So it you attempt to build hipblaslt with a Cmake of 4.0 or greater, the build will not succeed. Please update the Cmake dependency for hipblaslt so that one can use Cmake 4.0 or higher to build the code..

Current error message with Cmake 4.1:

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.  The policy was introduced in CMake version 3.0.0,
  and use of NEW behavior is now required.

  Please either update your CMakeLists.txt files to conform to the new
  behavior or use an older version of CMake that still supports the old
  behavior.  Run cmake --help-policy CMP0037 for more information.


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

GPU

No response

ROCm Component

hipblaslt

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