diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2017-06-17 16:49:33 (GMT) |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2017-06-28 17:55:12 (GMT) |
commit | 5299141320c7be96e9357ebd457c9a279308248a (patch) | |
tree | 9c487cff7beef693f711f6bd92ea96f3b9d918c2 /Source/cmLocalGenerator.cxx | |
parent | 1363a0cbcef00cb9a49eba3b68283b5b6d1b95a5 (diff) | |
download | CMake-5299141320c7be96e9357ebd457c9a279308248a.zip CMake-5299141320c7be96e9357ebd457c9a279308248a.tar.gz CMake-5299141320c7be96e9357ebd457c9a279308248a.tar.bz2 |
CPackDeb: Enable the DEB generator on Windows
While some features require external Unix tools the
generator is mostly portable.
By enabling it on Windows it can be used for cross platform
packaging.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 8e00303..9049a42 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -451,6 +451,19 @@ void cmLocalGenerator::GenerateInstallRules() /* clang-format on */ } + // Copy cmake cross compile state to install code. + if (const char* crosscompiling = + this->Makefile->GetDefinition("CMAKE_CROSSCOMPILING")) { + /* clang-format off */ + fout << + "# Is this installation the result of a crosscompile?\n" + "if(NOT DEFINED CMAKE_CROSSCOMPILING)\n" + " set(CMAKE_CROSSCOMPILING \"" << crosscompiling << "\")\n" + "endif()\n" + "\n"; + /* clang-format on */ + } + // Ask each install generator to write its code. std::vector<cmInstallGenerator*> const& installers = this->Makefile->GetInstallGenerators(); |