diff options
author | Brad King <brad.king@kitware.com> | 2020-04-06 12:26:30 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-04-06 12:26:40 (GMT) |
commit | 2b9e3abcb5f55fa74ff50979176545da6c56e368 (patch) | |
tree | 1aed957434ad3b3656c40f837f3b7b6cb14841ff /Source/cmLocalGenerator.cxx | |
parent | 0bc64c450c2fa485e5f1a5a7fea3efec97c84a3f (diff) | |
parent | 060d2ce26914e7a5ff6632869556f3c67d88940c (diff) | |
download | CMake-2b9e3abcb5f55fa74ff50979176545da6c56e368.zip CMake-2b9e3abcb5f55fa74ff50979176545da6c56e368.tar.gz CMake-2b9e3abcb5f55fa74ff50979176545da6c56e368.tar.bz2 |
Merge topic 'ctest-resource-file-cache'
060d2ce269 CTest: Add CTEST_RESOURCE_SPEC_FILE variable
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4564
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 6227f81..0fe0c40 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -301,6 +301,12 @@ void cmLocalGenerator::GenerateTestFiles() "# testing this directory and lists subdirectories to " "be tested as well.\n"; + std::string resourceSpecFile = + this->Makefile->GetSafeDefinition("CTEST_RESOURCE_SPEC_FILE"); + if (!resourceSpecFile.empty()) { + fout << "set(CTEST_RESOURCE_SPEC_FILE \"" << resourceSpecFile << "\")\n"; + } + cmProp testIncludeFile = this->Makefile->GetProperty("TEST_INCLUDE_FILE"); if (testIncludeFile) { fout << "include(\"" << *testIncludeFile << "\")\n"; |