summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/DemoCodegen.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/DemoCodegen.cmake b/cmake/DemoCodegen.cmake
index aa20a92..2d21b14 100644
--- a/cmake/DemoCodegen.cmake
+++ b/cmake/DemoCodegen.cmake
@@ -21,8 +21,8 @@ function(parse_asset_list INPUT_TXT OUT_FILE_LIST)
string(REGEX REPLACE "^[^,]+,[^,]+,[ ]*([^,]+).*" "\\1" FILENAME "${LINE}")
string(STRIP "${FILENAME}" FILENAME)
- # Use workspace-relative path
- set(FULL_PATH "${INPUT_DIR}/${FILENAME}")
+ # Normalize path (resolves .. components for correct dependency tracking)
+ get_filename_component(FULL_PATH "${INPUT_DIR}/${FILENAME}" ABSOLUTE)
if(EXISTS ${FULL_PATH})
list(APPEND ASSET_FILES ${FULL_PATH})