diff options
author | Brad King <brad.king@kitware.com> | 2015-06-08 18:13:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-06-08 18:16:28 (GMT) |
commit | 12436efc1483e8e0e5fd6ce616c0b8ed94af72a3 (patch) | |
tree | 8e111d722c5d7490c8b4aaaa4e037bf71220496c /Source/CTest | |
parent | a6916a6c6e397bda8b381f65dbfc59d3c52f8525 (diff) | |
download | CMake-12436efc1483e8e0e5fd6ce616c0b8ed94af72a3.zip CMake-12436efc1483e8e0e5fd6ce616c0b8ed94af72a3.tar.gz CMake-12436efc1483e8e0e5fd6ce616c0b8ed94af72a3.tar.bz2 |
ctest: Disable CMake Cygwin legacy warning in dashboard client script
In ctest -S mode we load the CTestScriptMode module to give the
configuration scripts access to the host system information.
CYGWIN.cmake warns unless we explicitly tell it not to warn
since there is no chance for a cmake_minimum_required(VERSION)
to be called.
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestScriptHandler.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestScriptHandler.cxx b/Source/CTest/cmCTestScriptHandler.cxx index 1e493b0..047bd98 100644 --- a/Source/CTest/cmCTestScriptHandler.cxx +++ b/Source/CTest/cmCTestScriptHandler.cxx @@ -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; |