summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2023-12-09 20:07:05 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2023-12-11 17:15:28 (GMT)
commita29ca55b1fe69c75b54c09707b68b8057befe6d6 (patch)
tree46bd3ae939980bdfc0fe9bfde67ba8a0b58f678b
parent609af7734ff14a04721463eb969f8ebb1a8de49c (diff)
downloadCMake-a29ca55b1fe69c75b54c09707b68b8057befe6d6.zip
CMake-a29ca55b1fe69c75b54c09707b68b8057befe6d6.tar.gz
CMake-a29ca55b1fe69c75b54c09707b68b8057befe6d6.tar.bz2
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.
-rw-r--r--Help/release/dev/create_test_sourcelist-full-filepath.rst5
-rw-r--r--Source/cmCreateTestSourceList.cxx2
2 files changed, 6 insertions, 1 deletions
diff --git a/Help/release/dev/create_test_sourcelist-full-filepath.rst b/Help/release/dev/create_test_sourcelist-full-filepath.rst
new file mode 100644
index 0000000..1afa82c
--- /dev/null
+++ b/Help/release/dev/create_test_sourcelist-full-filepath.rst
@@ -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.
diff --git a/Source/cmCreateTestSourceList.cxx b/Source/cmCreateTestSourceList.cxx
index af3c768..9edbafe 100644
--- a/Source/cmCreateTestSourceList.cxx
+++ b/Source/cmCreateTestSourceList.cxx
@@ -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);