From a29ca55b1fe69c75b54c09707b68b8057befe6d6 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 9 Dec 2023 15:07:05 -0500 Subject: 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. --- Help/release/dev/create_test_sourcelist-full-filepath.rst | 5 +++++ Source/cmCreateTestSourceList.cxx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 Help/release/dev/create_test_sourcelist-full-filepath.rst 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 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); -- cgit v0.12