mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-03 05:08:47 -06:00
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
9 lines
373 B
ReStructuredText
9 lines
373 B
ReStructuredText
subdirectory-sources
|
|
--------------------
|
|
|
|
* The :command:`target_sources` command now interprets relative source file
|
|
paths as relative to the current source directory. This simplifies
|
|
incrementally building up a target's sources from subdirectories. The
|
|
:policy:`CMP0076` policy was added to provide backward compatibility with
|
|
the old behavior where required.
|