Skip to content

Commit

Permalink
SWDEV-405330 - Add version details to amdocl shared library
Browse files Browse the repository at this point in the history
Change-Id: I517075790a48e0a85a2cbd00150b279f13d51ebe
  • Loading branch information
raramakr committed May 20, 2024
1 parent 294fa6d commit 7bacd27
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions opencl/amdocl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ set_target_properties(amdocl PROPERTIES
CXX_EXTENSIONS OFF
POSITION_INDEPENDENT_CODE ON)

# set amdocl library version
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}")
endif()

set_target_properties(amdocl PROPERTIES
VERSION "${AMDOCL_LIB_VERSION_PATCH}"
SOVERSION ${AMDOCL_LIB_VERSION_MAJOR})

if(CMAKE_SIZEOF_VOID_P EQUAL 8)
set_target_properties(amdocl PROPERTIES OUTPUT_NAME "amdocl64")
else()
Expand Down

0 comments on commit 7bacd27

Please sign in to comment.