aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmake/scripts/common/AddonHelpers.cmake20
1 files changed, 10 insertions, 10 deletions
diff --git a/cmake/scripts/common/AddonHelpers.cmake b/cmake/scripts/common/AddonHelpers.cmake
index 89dafa92b5..a91e3666fa 100644
--- a/cmake/scripts/common/AddonHelpers.cmake
+++ b/cmake/scripts/common/AddonHelpers.cmake
@@ -21,7 +21,7 @@ macro(add_cpack_workaround target version ext)
add_custom_command(TARGET addon-package POST_BUILD
COMMAND ${CMAKE_COMMAND} -E make_directory ${PACKAGE_DIR}
- COMMAND ${CMAKE_COMMAND} -E copy ${CPACK_PACKAGE_DIRECTORY}/addon-${target}-${version}.${ext} ${PACKAGE_DIR}/${target}-${version}.${ext})
+ COMMAND ${CMAKE_COMMAND} -E copy ${CPACK_PACKAGE_DIRECTORY}/addon-${target}-${version}-${PLATFORM_TAG}.${ext} ${PACKAGE_DIR}/${target}+${PLATFORM_TAG}/${target}-${version}.${ext})
endmacro()
# Grab the version from a given add-on's addon.xml
@@ -235,10 +235,10 @@ macro (build_addon target prefix libs)
endif()
set(CPACK_ARCHIVE_COMPONENT_INSTALL ON)
set(CPACK_COMPONENTS_IGNORE_GROUPS 1)
- list(APPEND CPACK_COMPONENTS_ALL ${target}-${${prefix}_VERSION})
+ list(APPEND CPACK_COMPONENTS_ALL ${target}-${${prefix}_VERSION}-${PLATFORM_TAG})
# Pack files together to create an archive
install(DIRECTORY ${target} ${CMAKE_CURRENT_BINARY_DIR}/${target} DESTINATION ./
- COMPONENT ${target}-${${prefix}_VERSION}
+ COMPONENT ${target}-${${prefix}_VERSION}-${PLATFORM_TAG}
REGEX ".+\\.xml\\.in(clude)?$" EXCLUDE)
if(WIN32)
if(NOT CPACK_PACKAGE_DIRECTORY)
@@ -257,24 +257,24 @@ macro (build_addon target prefix libs)
if(${prefix}_SOURCES)
# install the generated DLL file
install(PROGRAMS ${LIBRARY_LOCATION} DESTINATION ${target}
- COMPONENT ${target}-${${prefix}_VERSION})
+ COMPONENT ${target}-${${prefix}_VERSION}-${PLATFORM_TAG})
# for debug builds also install the PDB file
install(FILES $<TARGET_PDB_FILE:${target}> DESTINATION ${target}
CONFIGURATIONS Debug RelWithDebInfo
- COMPONENT ${target}-${${prefix}_VERSION})
+ COMPONENT ${target}-${${prefix}_VERSION}-${PLATFORM_TAG})
endif()
if(${prefix}_CUSTOM_BINARY)
install(FILES ${LIBRARY_LOCATION} DESTINATION ${target} RENAME ${LIBRARY_FILENAME}
- COMPONENT ${target}-${${prefix}_VERSION})
+ COMPONENT ${target}-${${prefix}_VERSION}-${PLATFORM_TAG})
endif()
if(${prefix}_CUSTOM_DATA)
install(DIRECTORY ${${prefix}_CUSTOM_DATA} DESTINATION ${target}/resources
- COMPONENT ${target}-${${prefix}_VERSION})
+ COMPONENT ${target}-${${prefix}_VERSION}-${PLATFORM_TAG})
endif()
if(${prefix}_ADDITIONAL_BINARY)
install(FILES ${${prefix}_ADDITIONAL_BINARY} DESTINATION ${target}
- COMPONENT ${target}-${${prefix}_VERSION})
+ COMPONENT ${target}-${${prefix}_VERSION}-${PLATFORM_TAG})
endif()
else() # NOT WIN32
if(NOT CPACK_PACKAGE_DIRECTORY)
@@ -282,11 +282,11 @@ macro (build_addon target prefix libs)
endif()
if(${prefix}_SOURCES)
install(TARGETS ${target} DESTINATION ${target}
- COMPONENT ${target}-${${prefix}_VERSION})
+ COMPONENT ${target}-${${prefix}_VERSION}-${PLATFORM_TAG})
endif()
if(${prefix}_CUSTOM_BINARY)
install(FILES ${LIBRARY_LOCATION} DESTINATION ${target} RENAME ${LIBRARY_FILENAME}
- COMPONENT ${target}-${${prefix}_VERSION})
+ COMPONENT ${target}-${${prefix}_VERSION}-${PLATFORM_TAG})
endif()
if(${prefix}_CUSTOM_DATA)
install(DIRECTORY ${${prefix}_CUSTOM_DATA} DESTINATION ${target}/resources)