mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-30 10:20:56 -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
231 B
CMake
9 lines
231 B
CMake
cmake_policy(SET CMP0076 NEW)
|
|
|
|
add_library(privatelib)
|
|
|
|
include("RelativePathInSubdirInclude/CMakeLists.txt")
|
|
|
|
get_property(privatelib_sources TARGET privatelib PROPERTY SOURCES)
|
|
message(STATUS "privatelib: ${privatelib_sources}")
|