summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalNinjaGenerator.h
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-02-04 16:06:46 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-02-04 19:13:07 (GMT)
commit16a4ba5b311669000d83c99b1b985597205d3d69 (patch)
treed488198bc202d2daa0ef63a11fc47d81e420f801 /Source/cmGlobalNinjaGenerator.h
parent2ac835b9f9a7a4dec16c498a51c0dbc3d64844bc (diff)
downloadCMake-16a4ba5b311669000d83c99b1b985597205d3d69.zip
CMake-16a4ba5b311669000d83c99b1b985597205d3d69.tar.gz
CMake-16a4ba5b311669000d83c99b1b985597205d3d69.tar.bz2
Ninja Multi-Config: Use build.ninja if cmake --build has no --config
If cmake --build is called with no --config argument, and a build.ninja file is available, use that instead of defaulting to the Debug config.
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.h')
-rw-r--r--Source/cmGlobalNinjaGenerator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmGlobalNinjaGenerator.h b/Source/cmGlobalNinjaGenerator.h
index 3b45249..0e53c0e 100644
--- a/Source/cmGlobalNinjaGenerator.h
+++ b/Source/cmGlobalNinjaGenerator.h
@@ -32,6 +32,7 @@ class cmLinkLineComputer;
class cmLocalGenerator;
class cmMakefile;
class cmOutputConverter;
+class cmState;
class cmStateDirectory;
class cmake;
struct cmDocumentationEntry;
@@ -633,6 +634,10 @@ public:
bool InspectConfigTypeVariables() override;
+ std::string GetDefaultBuildConfig() const override;
+
+ bool ReadCacheEntriesForBuild(const cmState& state) override;
+
protected:
bool OpenBuildFileStreams() override;
void CloseBuildFileStreams() override;