summaryrefslogtreecommitdiffstats
path: root/Source/cmExecProgramCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-06-16 14:39:12 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-06-16 14:39:12 (GMT)
commitee223dfa9138cfe960d5d7a6dc14b044b7e032bf (patch)
tree2f92b1c02d0311c68ccd7753e78883c404000cdc /Source/cmExecProgramCommand.cxx
parente5ed8b22cb540425f7806257a96b834dcb3fb2c7 (diff)
parent83af11d4112443ed732cd240eb0bfdfd27048825 (diff)
downloadCMake-ee223dfa9138cfe960d5d7a6dc14b044b7e032bf.zip
CMake-ee223dfa9138cfe960d5d7a6dc14b044b7e032bf.tar.gz
CMake-ee223dfa9138cfe960d5d7a6dc14b044b7e032bf.tar.bz2
Merge topic 'fix-windows-preprocessor-checks'
83af11d4 Fix preprocessor checks WIN32 => _WIN32
Diffstat (limited to 'Source/cmExecProgramCommand.cxx')
-rw-r--r--Source/cmExecProgramCommand.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmExecProgramCommand.cxx b/Source/cmExecProgramCommand.cxx
index e021d0b..41785c2 100644
--- a/Source/cmExecProgramCommand.cxx
+++ b/Source/cmExecProgramCommand.cxx
@@ -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;