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/CPack | |
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/CPack')
-rw-r--r-- | Source/CPack/cmCPackDebGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx index 560e5c1..7515d33 100644 --- a/Source/CPack/cmCPackDebGenerator.cxx +++ b/Source/CPack/cmCPackDebGenerator.cxx @@ -211,7 +211,7 @@ bool DebGenerator::generateDataTar() const cmCPackLogger(cmCPackLog::LOG_DEBUG, "RELATIVEDIR: \"" << relativeDir << "\"" << std::endl); -#ifdef WIN32 +#ifdef _WIN32 std::string mode_t_adt_filename = file + ":cmake_mode_t"; cmsys::ifstream permissionStream(mode_t_adt_filename.c_str()); |