summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-07-30 17:53:34 (GMT)
committerBrad King <brad.king@kitware.com>2019-07-30 17:53:34 (GMT)
commitfd58bb83e6a6dcbe27afd2272d1a9c2722de2482 (patch)
tree0892786c32cf4005916537eb2f1161f9edfec824 /Source/cmGlobalNinjaGenerator.h
parent0e2e3e0f9f8ae6e57da0c914774cea7a40515e1f (diff)
downloadCMake-fd58bb83e6a6dcbe27afd2272d1a9c2722de2482.zip
CMake-fd58bb83e6a6dcbe27afd2272d1a9c2722de2482.tar.gz
CMake-fd58bb83e6a6dcbe27afd2272d1a9c2722de2482.tar.bz2
Ninja: Use in-class initialization of global generator members
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.h')
-rw-r--r--Source/cmGlobalNinjaGenerator.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/Source/cmGlobalNinjaGenerator.h b/Source/cmGlobalNinjaGenerator.h
index 99afc1d..9ca7480 100644
--- a/Source/cmGlobalNinjaGenerator.h
+++ b/Source/cmGlobalNinjaGenerator.h
@@ -402,7 +402,7 @@ private:
/// The set of dependencies to add to the "all" target.
cmNinjaDeps AllDependencies;
- bool UsingGCCOnWindows;
+ bool UsingGCCOnWindows = false;
/// The set of custom commands we have seen.
std::set<cmCustomCommand const*> CustomCommands;
@@ -412,8 +412,8 @@ private:
/// Whether we are collecting known build outputs and needed
/// dependencies to determine unknown dependencies.
- bool ComputingUnknownDependencies;
- cmPolicies::PolicyStatus PolicyCMP0058;
+ bool ComputingUnknownDependencies = false;
+ cmPolicies::PolicyStatus PolicyCMP0058 = cmPolicies::WARN;
/// The combined explicit dependencies of custom build commands
std::set<std::string> CombinedCustomCommandExplicitDependencies;
@@ -435,11 +435,11 @@ private:
std::string NinjaCommand;
std::string NinjaVersion;
- bool NinjaSupportsConsolePool;
- bool NinjaSupportsImplicitOuts;
- bool NinjaSupportsManifestRestat;
- bool NinjaSupportsMultilineDepfile;
- unsigned long NinjaSupportsDyndeps;
+ bool NinjaSupportsConsolePool = false;
+ bool NinjaSupportsImplicitOuts = false;
+ bool NinjaSupportsManifestRestat = false;
+ bool NinjaSupportsMultilineDepfile = false;
+ unsigned long NinjaSupportsDyndeps = 0;
private:
void InitOutputPathPrefix();