Skip to content

Commit

Permalink
Set SOVERSION on library, and install to default lib dir
Browse files Browse the repository at this point in the history
CMakeLists.txt was erroneously setting the SOVERSION on the binary
instead of the library. Also, properly install to
/usr/lib/<archtriplet>.
  • Loading branch information
df7cb committed Feb 16, 2020
1 parent b8ecee6 commit 2d86fbb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ endif()
add_library(dsdcc SHARED
${dsdcc_SOURCES}
)
set_target_properties(dsdcc PROPERTIES VERSION ${VERSION} SOVERSION ${MAJOR_VERSION})

if (USE_MBELIB AND LIBMBE_FOUND)
target_link_libraries(dsdcc ${LIBMBE_LIBRARY})
Expand All @@ -183,8 +184,6 @@ add_executable(dsdccx
dsd_main.cpp
)

set_target_properties(dsdccx PROPERTIES VERSION ${VERSION} SOVERSION ${MAJOR_VERSION})

target_include_directories(dsdccx PUBLIC
${PROJECT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
Expand Down Expand Up @@ -222,5 +221,5 @@ INSTALL(
if(BUILD_TOOL)
install(TARGETS dsdccx DESTINATION bin)
endif(BUILD_TOOL)
install(TARGETS dsdcc DESTINATION lib${LIB_SUFFIX})
install(TARGETS dsdcc DESTINATION ${LIB_INSTALL_DIR})
install(FILES ${dsdcc_HEADERS} DESTINATION include/${PROJECT_NAME})

0 comments on commit 2d86fbb

Please sign in to comment.