Skip to content

Commit

Permalink
Merge pull request #1294 from sebastianas/lib_version
Browse files Browse the repository at this point in the history
Add a dependency for the version map.
  • Loading branch information
micahsnyder authored Jul 22, 2024
2 parents 60ade09 + 34d4d0e commit 8f914a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion libclamav/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,8 @@ if(ENABLE_SHARED_LIB)
add_library( clamav SHARED )
set_target_properties( clamav PROPERTIES
VERSION ${LIBCLAMAV_VERSION}
SOVERSION ${LIBCLAMAV_SOVERSION} )
SOVERSION ${LIBCLAMAV_SOVERSION}
LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/libclamav.map)
target_sources( clamav
PRIVATE
${LIBCLAMAV_SOURCES}
Expand Down
3 changes: 2 additions & 1 deletion libfreshclam/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ if(ENABLE_SHARED_LIB)
endif()
set_target_properties(freshclam PROPERTIES
COMPILE_FLAGS "${WARNCFLAGS}"
VERSION ${LIBFRESHCLAM_VERSION} SOVERSION ${LIBFRESHCLAM_SOVERSION})
VERSION ${LIBFRESHCLAM_VERSION} SOVERSION ${LIBFRESHCLAM_SOVERSION}
LINK_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/libfreshclam.map)
if(WIN32)
install(TARGETS freshclam DESTINATION . COMPONENT libraries)
install(FILES $<TARGET_PDB_FILE:freshclam> DESTINATION . OPTIONAL COMPONENT libraries)
Expand Down

0 comments on commit 8f914a0

Please sign in to comment.