summaryrefslogtreecommitdiffstats
path: root/Source
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 /Source
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.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCreateTestSourceList.cxx2
1 files changed, 1 insertions, 1 deletions
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);