1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-16 22:37:30 +08:00

create_test_sourcelist: use the full path to the driver

When using `FILE_SET` syntax, full paths to out-of-source files are
needed as they are not searched for.
This commit is contained in:
Ben Boeckel
2023-12-09 15:07:05 -05:00
parent 609af7734f
commit a29ca55b1f
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
create_test_sourcelist-full-filepath
------------------------------------
* The :command:`create_test_sourcelist` command now provides a full path to
the generated driver source file.

View File

@@ -135,7 +135,7 @@ bool cmCreateTestSourceList(std::vector<std::string> const& args,
{
cmSourceFile* sf = mf.GetOrCreateSource(driver);
sf->SetProperty("ABSTRACT", "0");
sourceListValue = args[1];
sourceListValue = driver;
}
for (i = testsBegin; i != tests.end(); ++i) {
cmSourceFile* sf = mf.GetOrCreateSource(*i);