mirror of
https://github.com/reactos/CMake.git
synced 2024-12-03 00:57:25 +00:00
cpack: Enable MSVC debug hook earlier
All other executables do this just after console and command-line encoding conversion. Do the same in CPack.
This commit is contained in:
parent
63f263b27f
commit
3b588ac582
@ -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."
|
||||
|
Loading…
Reference in New Issue
Block a user