diff options
author | Brad King <brad.king@kitware.com> | 2021-10-15 15:33:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-10-15 15:39:04 (GMT) |
commit | 40e73c5ac4849fdbeb58850bf93de7f2c581f26e (patch) | |
tree | 8e72d7257ff44e839878985babbaff7c41458db5 /Source/cmcmd.cxx | |
parent | c352d16aafa8989b071cc10d757e4a344ac5cbbe (diff) | |
download | CMake-40e73c5ac4849fdbeb58850bf93de7f2c581f26e.zip CMake-40e73c5ac4849fdbeb58850bf93de7f2c581f26e.tar.gz CMake-40e73c5ac4849fdbeb58850bf93de7f2c581f26e.tar.bz2 |
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.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmcmd.cxx b/Source/cmcmd.cxx index e2ff8b7..613593a 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 |