summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
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/cmake.cxx
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/cmake.cxx')
-rw-r--r--Source/cmake.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 5fa40d5..f4b9f16 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -2767,6 +2767,10 @@ int cmake::Build(int jobs, const std::string& dir,
}
#endif
+ if (!this->GlobalGenerator->ReadCacheEntriesForBuild(*this->State)) {
+ return 1;
+ }
+
this->GlobalGenerator->PrintBuildCommandAdvice(std::cerr, jobs);
return this->GlobalGenerator->Build(
jobs, "", dir, projName, targets, output, "", config, clean, false,