mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
file(TIMESTAMP): Interpret relative paths w.r.t. the source tree
Fixes: #23610
This commit is contained in:
@@ -2836,7 +2836,11 @@ bool HandleTimestampCommand(std::vector<std::string> const& args,
|
||||
|
||||
unsigned int argsIndex = 1;
|
||||
|
||||
const std::string& filename = args[argsIndex++];
|
||||
std::string filename = args[argsIndex++];
|
||||
if (!cmsys::SystemTools::FileIsFullPath(filename)) {
|
||||
filename = cmStrCat(status.GetMakefile().GetCurrentSourceDirectory(), '/',
|
||||
filename);
|
||||
}
|
||||
|
||||
const std::string& outputVariable = args[argsIndex++];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user