From 5f713ab920bd42a48e47bcfee4bce3869521e11c Mon Sep 17 00:00:00 2001 From: Justin Luong Date: Mon, 15 Sep 2025 23:38:51 +1000 Subject: [PATCH] Fix emscripten preload file not working for a symlinked directory --- cmake/platforms/emscripten.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/platforms/emscripten.cmake b/cmake/platforms/emscripten.cmake index 38cbe244..b7380530 100644 --- a/cmake/platforms/emscripten.cmake +++ b/cmake/platforms/emscripten.cmake @@ -32,7 +32,7 @@ if(EMSCRIPTEN_PRELOAD_FILE) if(NOT EXISTS "${CMAKE_SOURCE_DIR}/${BASEGAME}") message(FATAL_ERROR "No files in '${BASEGAME}' directory for emscripten to preload.") endif() - list(APPEND CLIENT_LINK_OPTIONS "--preload-file ${BASEGAME}") + list(APPEND CLIENT_LINK_OPTIONS --preload-file "${BASEGAME}") endif() set(POST_CLIENT_CONFIGURE_FUNCTION deploy_shell_files)