Skip to content

Commit

Permalink
[CMake] Emscripten: Fix copying static assets to build dir
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Apr 19, 2024
1 parent a80e478 commit 48913a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -839,8 +839,9 @@ else()
COMPONENT Core
DESTINATION "${WZ_APP_INSTALL_DEST}/assets")
# Also place assets in build dir so it can be run directly
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/assets")
foreach(asset IN LISTS static_assets)
configure_file("${asset}" "${CMAKE_CURRENT_BINARY_DIR}/" COPYONLY)
configure_file("${asset}" "${CMAKE_CURRENT_BINARY_DIR}/assets/" COPYONLY)
endforeach()
endif()

Expand Down

0 comments on commit 48913a9

Please sign in to comment.