mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-13 12:59:55 -05:00
Merge topic 'early-config-name'
eeb47fbe cmLocalCommonGenerator: Save CMAKE_BUILD_TYPE on construction
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !848
This commit is contained in:
@@ -15,14 +15,6 @@ cmLocalCommonGenerator::cmLocalCommonGenerator(cmGlobalGenerator* gg,
|
||||
std::string const& wd)
|
||||
: cmLocalGenerator(gg, mf)
|
||||
, WorkingDirectory(wd)
|
||||
{
|
||||
}
|
||||
|
||||
cmLocalCommonGenerator::~cmLocalCommonGenerator()
|
||||
{
|
||||
}
|
||||
|
||||
void cmLocalCommonGenerator::SetConfigName()
|
||||
{
|
||||
// Store the configuration name that will be generated.
|
||||
if (const char* config = this->Makefile->GetDefinition("CMAKE_BUILD_TYPE")) {
|
||||
@@ -34,6 +26,10 @@ void cmLocalCommonGenerator::SetConfigName()
|
||||
}
|
||||
}
|
||||
|
||||
cmLocalCommonGenerator::~cmLocalCommonGenerator()
|
||||
{
|
||||
}
|
||||
|
||||
std::string cmLocalCommonGenerator::GetTargetFortranFlags(
|
||||
cmGeneratorTarget const* target, std::string const& config)
|
||||
{
|
||||
|
||||
@@ -33,7 +33,6 @@ public:
|
||||
protected:
|
||||
std::string WorkingDirectory;
|
||||
|
||||
void SetConfigName();
|
||||
std::string ConfigName;
|
||||
|
||||
friend class cmCommonTargetGenerator;
|
||||
|
||||
@@ -58,8 +58,6 @@ void cmLocalNinjaGenerator::Generate()
|
||||
this->HomeRelativeOutputPath = "";
|
||||
}
|
||||
|
||||
this->SetConfigName();
|
||||
|
||||
this->WriteProcessedMakefile(this->GetBuildFileStream());
|
||||
#ifdef NINJA_GEN_VERBOSE_FILES
|
||||
this->WriteProcessedMakefile(this->GetRulesFileStream());
|
||||
|
||||
@@ -105,8 +105,6 @@ cmLocalUnixMakefileGenerator3::~cmLocalUnixMakefileGenerator3()
|
||||
|
||||
void cmLocalUnixMakefileGenerator3::Generate()
|
||||
{
|
||||
this->SetConfigName();
|
||||
|
||||
// Record whether some options are enabled to avoid checking many
|
||||
// times later.
|
||||
if (!this->GetGlobalGenerator()->GetCMakeInstance()->GetIsInTryCompile()) {
|
||||
|
||||
Reference in New Issue
Block a user