KhronosGroup / OpenCL-Headers

Khronos OpenCL-Headers
Apache License 2.0
666 stars 236 forks source link

Fix CMake deprecation warning #246

Closed s-barannikov closed 7 months ago

s-barannikov commented 8 months ago

Recent versions of CMake issue a deprecation warning:

CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 3.5 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

Silence this warning by using a ...<max> suffix in cmake_minimum_required invocation. No functional change intended.

CLAassistant commented 8 months ago

CLA assistant check
All committers have signed the CLA.

bashbaug commented 7 months ago

@MathiasMagnus should we be making similar changes to any of our other repos (e.g. OpenCL ICD loader, OpenCL SDK)? If so, how do you want to track this?

MathiasMagnus commented 7 months ago

Our CI/CD changes sport a similar change (and will conflict with this one, but we'll fix), so the other repos will get similar treatment without any special care.