mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Fix preprocessor checks WIN32 => _WIN32
The latter is predefined by Windows toolchains and is more reliable. Reported-by: Michael Stürmer <michael.stuermer@schaeffler.com>
This commit is contained in:
@@ -156,7 +156,7 @@ bool cmExecProgramCommand::RunCommand(const char* command,
|
||||
verbose = false;
|
||||
}
|
||||
|
||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||
// if the command does not start with a quote, then
|
||||
// try to find the program, and if the program can not be
|
||||
// found use system to run the command as it must be a built in
|
||||
@@ -219,7 +219,7 @@ bool cmExecProgramCommand::RunCommand(const char* command,
|
||||
return false;
|
||||
}
|
||||
|
||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||
if(dir)
|
||||
{
|
||||
cmsysProcess_SetWorkingDirectory(cp, dir);
|
||||
@@ -305,7 +305,7 @@ bool cmExecProgramCommand::RunCommand(const char* command,
|
||||
}
|
||||
if(!msg.empty())
|
||||
{
|
||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||
#if defined(_WIN32) && !defined(__CYGWIN__)
|
||||
// Old Windows process execution printed this info.
|
||||
msg += "\n\nfor command: ";
|
||||
msg += command;
|
||||
|
||||
Reference in New Issue
Block a user