~aleteoryx/muditaos

2e5d5c643b21e4a6a100a857b1d1e4a9f66f333c — Radosław Wicik 5 years ago c7c9b2d
[EGD-4204] Add support for assets with space in file name (#949)

1 files changed, 2 insertions(+), 1 deletions(-)

M image/CMakeLists.txt
M image/CMakeLists.txt => image/CMakeLists.txt +2 -1
@@ 1,4 1,4 @@
set(ASSETS_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
set(ASSETS_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
set(ASSETS_DEST_DIR "${CMAKE_BINARY_DIR}")

file (GLOB_RECURSE ASSETS_LIST


@@ 24,6 24,7 @@ foreach(ASSET ${ASSETS_LIST})

    set(outfile "${destdir}/${filename}")
    string(REPLACE "/" "-" target_name ${ASSET})
    string(REPLACE " " "_" target_name ${target_name})
    if(${target_name} STREQUAL ${ASSET})
        set(target_name "file-${target_name}")
    endif()