diff options
author | Arne Morten Kvarving <spiff@kodi.tv> | 2018-10-18 10:30:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-18 10:30:06 +0200 |
commit | 242d2efbb0c266ede0c7eaf4f62913c3431fb378 (patch) | |
tree | 3c2e534fb88e0c6d97bf660bf3672c990ef7ea8d /cmake | |
parent | 389f30da825bbf4baf82c63d758f66966fa0fa13 (diff) | |
parent | 0304128bc12324d9976531ee1f2f65b627267574 (diff) |
Merge pull request #14641 from notspiff/fix_mirroring
fixed: KODI_BUILD_DIR mirroring of custom data
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/scripts/common/AddonHelpers.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/scripts/common/AddonHelpers.cmake b/cmake/scripts/common/AddonHelpers.cmake index a91e3666fa..5d21923d07 100644 --- a/cmake/scripts/common/AddonHelpers.cmake +++ b/cmake/scripts/common/AddonHelpers.cmake @@ -341,10 +341,11 @@ macro (build_addon target prefix libs) if(${APP_NAME_UC}_BUILD_DIR) file(GLOB_RECURSE files ${CMAKE_CURRENT_SOURCE_DIR}/${target}/*) if(${prefix}_CUSTOM_DATA) + get_filename_component(dname ${${prefix}_CUSTOM_DATA} NAME) add_custom_command(TARGET ${target} POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory ${${prefix}_CUSTOM_DATA} - ${${APP_NAME_UC}_BUILD_DIR}/addons/${target}/resources) + ${${APP_NAME_UC}_BUILD_DIR}/addons/${target}/resources/${dname}) endif() foreach(file ${files}) string(REPLACE "${CMAKE_CURRENT_SOURCE_DIR}/${target}/" "" name "${file}") |