Skip to content

Commit 406b5de

Browse files
committed
CMake: filter component dependencies for archive packagers (ZIP, TBZ2, 7Z, …)
1 parent 4d91a08 commit 406b5de

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmake/LSLCMake.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,12 @@ macro(LSLGenerateCPackConfig)
352352
get_property(LSLDEPENDS GLOBAL PROPERTY "LSLDEPENDS_${component}")
353353
if(LSLDEPENDS)
354354
list(REMOVE_DUPLICATES LSLDEPENDS)
355+
# remove dependencies we don't package ourselves
356+
set(MISSING ${LSLDEPENDS})
357+
list(REMOVE_ITEM MISSING ${CPACK_COMPONENTS_ALL})
358+
if(MISSING)
359+
list(REMOVE_ITEM LSLDEPENDS ${MISSING})
360+
endif()
355361
set("CPACK_COMPONENT_${COMPONENT}_DEPENDS" ${LSLDEPENDS})
356362
endif()
357363

0 commit comments

Comments
 (0)