summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.h
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-02-04 19:12:01 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-02-04 19:13:07 (GMT)
commit2ac835b9f9a7a4dec16c498a51c0dbc3d64844bc (patch)
tree9b52bf9b0a2ba5a32b87579fe184dadea3443318 /Source/cmGlobalGenerator.h
parent28013c9434b748c5009061844f19b29f0d482c9e (diff)
downloadCMake-2ac835b9f9a7a4dec16c498a51c0dbc3d64844bc.zip
CMake-2ac835b9f9a7a4dec16c498a51c0dbc3d64844bc.tar.gz
CMake-2ac835b9f9a7a4dec16c498a51c0dbc3d64844bc.tar.bz2
Refactor: Allow generators to decide default configuration for build
And allow them to read any cache values they need.
Diffstat (limited to 'Source/cmGlobalGenerator.h')
-rw-r--r--Source/cmGlobalGenerator.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h
index f6ed10f..e6ab1dd 100644
--- a/Source/cmGlobalGenerator.h
+++ b/Source/cmGlobalGenerator.h
@@ -44,6 +44,7 @@ class cmLocalGenerator;
class cmMakefile;
class cmOutputConverter;
class cmSourceFile;
+class cmState;
class cmStateDirectory;
class cmake;
@@ -135,6 +136,12 @@ public:
virtual bool SetGeneratorToolset(std::string const& ts, bool build,
cmMakefile* mf);
+ /** Read any other cache entries needed for cmake --build. */
+ virtual bool ReadCacheEntriesForBuild(const cmState& /*state*/)
+ {
+ return true;
+ }
+
/**
* Create LocalGenerators and process the CMakeLists files. This does not
* actually produce any makefiles, DSPs, etc.
@@ -382,6 +389,9 @@ public:
// Lookup edit_cache target command preferred by this generator.
virtual std::string GetEditCacheCommand() const { return ""; }
+ // Default config to use for cmake --build
+ virtual std::string GetDefaultBuildConfig() const { return "Debug"; }
+
// Class to track a set of dependencies.
using TargetDependSet = cmTargetDependSet;