summaryrefslogtreecommitdiff
path: root/cmake/DemoCodegen.cmake
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-03-07 20:19:18 +0100
committerskal <pascal.massimino@gmail.com>2026-03-07 20:19:18 +0100
commit58e360bfeb32d8f46782db208a6dbc53ada1f62c (patch)
tree4b62855468329dc52ed4db8746a4eaa0168a358e /cmake/DemoCodegen.cmake
parentad9ee515d162d2aa23b64263e043d45add95615f (diff)
fix(cmake): normalize asset paths to fix incremental rebuild tracking
Paths like ../../src/effects/ntsc.wgsl were stored non-normalized in the DEPENDS list, preventing Ninja/Make from detecting file changes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'cmake/DemoCodegen.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})