Skip to content

target_sources: Interpret relative paths as relative to the calling directory

Patrick Stotko requested to merge stotko/cmake:subdir_target_sources into master

Previously the command considered non-absolute source file paths relative to the associated target on the LHS. This causes problems in incremental builds where files are added from subdirectories and forces users to workaround by manually converting to absolute paths. Change this to enable more intuitive usage by projects.

Fixes #17981 (closed)

Merge request reports