summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-04-01 16:50:03 (GMT)
committerBrad King <brad.king@kitware.com>2015-04-01 16:57:43 (GMT)
commitaca1d93bd9b9921ecef83b80bed219a2f5879500 (patch)
treea4eaa28181dd9e022ae8a22b781a3eef3c644358
parentc1f8c6cdf94d650df1bd8ec847ae7ac453550978 (diff)
downloadCMake-aca1d93bd9b9921ecef83b80bed219a2f5879500.zip
CMake-aca1d93bd9b9921ecef83b80bed219a2f5879500.tar.gz
CMake-aca1d93bd9b9921ecef83b80bed219a2f5879500.tar.bz2
cpack: Disable CMake Cygwin legacy warning while packaging
In cpack we load the platform information modules 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.
-rw-r--r--Source/CPack/cpack.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx
index 6106472..00b23cd 100644
--- a/Source/CPack/cpack.cxx
+++ b/Source/CPack/cpack.cxx
@@ -203,6 +203,9 @@ int main (int argc, char const* const* argv)
cmgg.SetCMakeInstance(&cminst);
cmsys::auto_ptr<cmLocalGenerator> cmlg(cmgg.CreateLocalGenerator());
cmMakefile* globalMF = cmlg->GetMakefile();
+#if defined(__CYGWIN__)
+ globalMF->AddDefinition("CMAKE_LEGACY_CYGWIN_WIN32", "0");
+#endif
bool cpackConfigFileSpecified = true;
if ( cpackConfigFile.empty() )