summaryrefslogtreecommitdiff
path: root/dev-libs/rocm-opencl-runtime/files/rocm-opencl-runtime-6.2.4-fix-lib-version.patch
blob: 17c6ebcc6f6e382826a6a6879da0982fef49d7dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
There is no ROCM_LIBPATCH_VERSION outside of AMD farm.
Upstream bug: https://github.com/ROCm/clr/issues/112
--- a/opencl/amdocl/CMakeLists.txt
+++ b/opencl/amdocl/CMakeLists.txt
@@ -66,6 +66,8 @@ set(AMDOCL_LIB_VERSION_MAJOR "2")
 set(AMDOCL_LIB_VERSION_MINOR "1")
 if(DEFINED ENV{ROCM_LIBPATCH_VERSION})
   set(AMDOCL_LIB_VERSION_PATCH "${AMDOCL_LIB_VERSION_MAJOR}.${AMDOCL_LIB_VERSION_MINOR}.$ENV{ROCM_LIBPATCH_VERSION}")
+else()
+  set(AMDOCL_LIB_VERSION_PATCH "${AMDOCL_LIB_VERSION_MAJOR}.${AMDOCL_LIB_VERSION_MINOR}")
 endif()
 
 set_target_properties(amdocl PROPERTIES