Files
gentoo/dev-libs/rocm-device-libs/files/rocm-device-libs-6.4.2-cmake-4-compat.patch
Sv. Lockal e09df66ef5 dev-libs/rocm-device-libs: add 6.4.1
Signed-off-by: Sv. Lockal <lockalsash@gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42554
Signed-off-by: Sam James <sam@gentoo.org>
2025-06-14 23:36:55 +01:00

18 lines
757 B
Diff

Policy CMP0053 is no longer supported by CMake 4+
Backports https://github.com/ROCm/llvm-project/commit/a18cc4c7cb51f94182b6018c7c73acde1b8ebddb
--- a/cmake/OCL.cmake
+++ b/cmake/OCL.cmake
@@ -9,7 +9,10 @@
# command-lines, but the only way to do this as part of the dependency graph is
# configure_file and we are included from multiple places. To get around this
# we `file(WRITE)` a file with an @variable reference and `configure_file` it.
-cmake_policy(SET CMP0053 OLD)
+# FIXME: CMP0053 is removed in CMake 4; refine code relying on this policy.
+if(${CMAKE_VERSION} VERSION_LESS "4.0.0")
+ cmake_policy(SET CMP0053 OLD)
+endif()
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.20.0")
# The policy change was for handling of relative paths for