summaryrefslogtreecommitdiff
path: root/Source/cmcmd.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-10-15 11:33:00 -0400
committerBrad King <brad.king@kitware.com>2021-10-15 11:39:04 -0400
commit40e73c5ac4849fdbeb58850bf93de7f2c581f26e (patch)
tree8e72d7257ff44e839878985babbaff7c41458db5 /Source/cmcmd.cxx
parentc352d16aafa8989b071cc10d757e4a344ac5cbbe (diff)
downloadcmake-40e73c5ac4849fdbeb58850bf93de7f2c581f26e.tar.gz
Source: Fix typo in _WIN32 preprocessor checks
Since CMake's default compiler flags with MSVC include `-DWIN32` for historical reasons, a few preprocessor conditions were accidentally checking for `WIN32` instead of `_WIN32`. The corresponding blocks were left out when compiling official binaries for `cmake.org` because we hard-code compiler flags without `-DWIN32`. Fixes: #22764
Diffstat (limited to 'Source/cmcmd.cxx')
-rw-r--r--Source/cmcmd.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx
index e2ff8b7535..613593a5b5 100644
--- a/Source/cmcmd.cxx
+++ b/Source/cmcmd.cxx
@@ -1334,7 +1334,7 @@ int cmcmd::ExecuteCMakeCommand(std::vector<std::string> const& args,
cmSystemTools::Error("Problem extracting tar: " + outFile);
return 1;
}
-#ifdef WIN32
+#ifdef _WIN32
// OK, on windows 7 after we untar some files,
// sometimes we can not rename the directory after
// the untar is done. This breaks the external project