Merge topic 'ctest-script-mode-no-legacy-cygwin'

12436efc ctest: Disable CMake Cygwin legacy warning in dashboard client script
This commit is contained in:
Brad King 2015-06-09 09:18:46 -04:00 committed by CMake Topic Stage
commit 82986700d1
1 changed files with 4 additions and 0 deletions

View File

@ -421,6 +421,10 @@ int cmCTestScriptHandler::ReadInScript(const std::string& total_script_arg)
this->Makefile->AddDefinition("CTEST_SCRIPT_ARG", script_arg.c_str());
}
#if defined(__CYGWIN__)
this->Makefile->AddDefinition("CMAKE_LEGACY_CYGWIN_WIN32", "0");
#endif
// always add a function blocker to update the elapsed time
cmCTestScriptFunctionBlocker *f = new cmCTestScriptFunctionBlocker();
f->CTestScriptHandler = this;