Skip to content

Commit 7bacd27

Browse files
committed
SWDEV-405330 - Add version details to amdocl shared library
Change-Id: I517075790a48e0a85a2cbd00150b279f13d51ebe
1 parent 294fa6d commit 7bacd27

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

opencl/amdocl/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,17 @@ set_target_properties(amdocl PROPERTIES
6161
CXX_EXTENSIONS OFF
6262
POSITION_INDEPENDENT_CODE ON)
6363

64+
# set amdocl library version
65+
set(AMDOCL_LIB_VERSION_MAJOR "2")
66+
set(AMDOCL_LIB_VERSION_MINOR "1")
67+
if(DEFINED ENV{ROCM_LIBPATCH_VERSION})
68+
set(AMDOCL_LIB_VERSION_PATCH "${AMDOCL_LIB_VERSION_MAJOR}.${AMDOCL_LIB_VERSION_MINOR}.$ENV{ROCM_LIBPATCH_VERSION}")
69+
endif()
70+
71+
set_target_properties(amdocl PROPERTIES
72+
VERSION "${AMDOCL_LIB_VERSION_PATCH}"
73+
SOVERSION ${AMDOCL_LIB_VERSION_MAJOR})
74+
6475
if(CMAKE_SIZEOF_VOID_P EQUAL 8)
6576
set_target_properties(amdocl PROPERTIES OUTPUT_NAME "amdocl64")
6677
else()

0 commit comments

Comments
 (0)