summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-27 22:16:37 (GMT)
committerBrad King <brad.king@kitware.com>2023-03-27 22:20:23 (GMT)
commita67cd9c39cc82fa934cc047c719fae8995ff215c (patch)
treeadcb3708a5d01438f1dd3470d07cbd367e4a9980 /Source/cmGlobalNinjaGenerator.h
parent381327c944dc60ccc418e110c5afee85462cfea4 (diff)
downloadCMake-a67cd9c39cc82fa934cc047c719fae8995ff215c.zip
CMake-a67cd9c39cc82fa934cc047c719fae8995ff215c.tar.gz
CMake-a67cd9c39cc82fa934cc047c719fae8995ff215c.tar.bz2
Ninja: Restore slash style for MinGW tools when extra languages are enabled
Since commit f3ca199c9b (cmGlobalNinjaGenerator: Factor out GNU-like command-line detection on Windows, 2023-03-18, v3.26.1~2^2~6), we accidentally "unrecognize" MinGW tools on Windows if a language other than C or CXX is enabled. This causes the wrong slash style to be generated in paths in `build.ninja`. Fixes: #24642
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.h')
-rw-r--r--Source/cmGlobalNinjaGenerator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalNinjaGenerator.h b/Source/cmGlobalNinjaGenerator.h
index 68b26cc..7f01b09 100644
--- a/Source/cmGlobalNinjaGenerator.h
+++ b/Source/cmGlobalNinjaGenerator.h
@@ -169,7 +169,7 @@ public:
const std::string& comment = "");
bool IsGCCOnWindows() const { return this->UsingGCCOnWindows; }
- void SetUsingGCCOnWindows(bool b) { this->UsingGCCOnWindows = b; }
+ void MarkAsGCCOnWindows() { this->UsingGCCOnWindows = true; }
cmGlobalNinjaGenerator(cmake* cm);