diff options
author | Eric NOULARD <eric.noulard@gmail.com> | 2012-05-14 20:26:15 +0200 |
---|---|---|
committer | Eric NOULARD <eric.noulard@gmail.com> | 2012-05-14 20:26:15 +0200 |
commit | 6ba055bacdce1cdf7a74008b980440027f275d94 (patch) | |
tree | 7f87b68f65c72a058dfd4cf544409fef0f7ecba9 /Source/CPack/cmCPackNSISGenerator.cxx | |
parent | 75c0304a9ee646c8a408f713477fa3522ab1e8a8 (diff) | |
download | cmake-6ba055bacdce1cdf7a74008b980440027f275d94.tar.gz |
CPack add easy possibility to warn about CPACK_SET_DESTDIR
CPackNSIS will only warn but sooner or later it should error out
Diffstat (limited to 'Source/CPack/cmCPackNSISGenerator.cxx')
-rw-r--r-- | Source/CPack/cmCPackNSISGenerator.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackNSISGenerator.cxx b/Source/CPack/cmCPackNSISGenerator.cxx index 0787ef9016..63189de2ee 100644 --- a/Source/CPack/cmCPackNSISGenerator.cxx +++ b/Source/CPack/cmCPackNSISGenerator.cxx @@ -64,6 +64,7 @@ int cmCPackNSISGenerator::PackageFiles() << std::endl); return false; } + std::string nsisFileName = this->GetOption("CPACK_TOPLEVEL_DIRECTORY"); std::string tmpFile = nsisFileName; tmpFile += "/NSISOutput.log"; @@ -631,6 +632,13 @@ bool cmCPackNSISGenerator::GetListOfSubdirectories(const char* topdir, } //---------------------------------------------------------------------- +enum cmCPackGenerator::CPackSetDestdirSupport +cmCPackNSISGenerator::SupportsSetDestdir() const +{ + return cmCPackGenerator::SETDESTDIR_SHOULD_NOT_BE_USED; +} + +//---------------------------------------------------------------------- bool cmCPackNSISGenerator::SupportsComponentInstallation() const { return true; |