Skip to content

Commit

Permalink
Add a dependency for the version map.
Browse files Browse the repository at this point in the history
Add a dependcy  on that version map so that it is re-run once it
changes.

Signed-off-by: Sebastian Andrzej Siewior <[email protected]>
  • Loading branch information
sebastianas authored and micahsnyder committed Jul 22, 2024
1 parent 652d5f6 commit 34d4d0e
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 34d4d0e

Please sign in to comment.