Skip to content

Commit eb487c3

Browse files
authored
Add softlink for rocdecode-host library target (#614)
1 parent aad9c24 commit eb487c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/rocdecode-host/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ if (NOT DEFINED CMAKE_CXX_COMPILER)
4141
endif()
4242

4343
# Set Project Version and Language
44-
project(rocdecodehost LANGUAGES CXX)
44+
project(rocdecodehost VERSION ${VERSION} LANGUAGES CXX)
4545
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/../../cmake)
4646
list(APPEND CMAKE_PREFIX_PATH ${ROCM_PATH}/lib/cmake)
4747

@@ -109,5 +109,6 @@ else()
109109
endif()
110110
endif()
111111

112-
# install rocdecode libs -- {ROCM_PATH}/lib
112+
# install rocdecode-host libs -- {ROCM_PATH}/lib
113+
set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR})
113114
install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT dev)

0 commit comments

Comments
 (0)