diff options
author | Brad King <brad.king@kitware.com> | 2018-01-23 14:27:30 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-01-23 14:27:30 (GMT) |
commit | 3b588ac58256540e6dc974cf2d1a122c95f19171 (patch) | |
tree | 6b3315ee2624fea97715c00a6765af7305d8e251 /Source/CPack | |
parent | 63f263b27fa9b9c63f038ff108118726bc9c5c64 (diff) | |
download | CMake-3b588ac58256540e6dc974cf2d1a122c95f19171.zip CMake-3b588ac58256540e6dc974cf2d1a122c95f19171.tar.gz CMake-3b588ac58256540e6dc974cf2d1a122c95f19171.tar.bz2 |
cpack: Enable MSVC debug hook earlier
All other executables do this just after console and command-line
encoding conversion. Do the same in CPack.
Diffstat (limited to 'Source/CPack')
-rw-r--r-- | Source/CPack/cpack.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx index addb54e..2505a33 100644 --- a/Source/CPack/cpack.cxx +++ b/Source/CPack/cpack.cxx @@ -98,6 +98,7 @@ int main(int argc, char const* const* argv) argc = args.argc(); argv = args.argv(); + cmSystemTools::EnableMSVCDebugHook(); cmSystemTools::FindCMakeResources(argv[0]); cmCPackLog log; @@ -106,8 +107,6 @@ int main(int argc, char const* const* argv) log.SetOutputPrefix("CPack: "); log.SetVerbosePrefix("CPack Verbose: "); - cmSystemTools::EnableMSVCDebugHook(); - if (cmSystemTools::GetCurrentWorkingDirectory().empty()) { cmCPack_Log(&log, cmCPackLog::LOG_ERROR, "Current working directory cannot be established." |