mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 06:09:52 -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
17 lines
252 B
C++
17 lines
252 B
C++
#include <iostream>
|
|
|
|
int empty_1();
|
|
int subdir_empty_1();
|
|
int subdir_empty_2();
|
|
|
|
int main()
|
|
{
|
|
int e1 = empty_1();
|
|
int se1 = subdir_empty_1();
|
|
int se2 = subdir_empty_2();
|
|
|
|
std::cout << e1 << " " << se1 << " " << se2 << std::endl;
|
|
|
|
return 0;
|
|
}
|