Ninja: ensure the output dir exists at compile time
This commit is contained in:
parent
7a6b5f4651
commit
f1bb08f55b
|
@ -42,6 +42,11 @@ cmNinjaNormalTargetGenerator(cmTarget* target)
|
|||
this->TargetNameImport,
|
||||
this->TargetNamePDB,
|
||||
GetLocalGenerator()->GetConfigName());
|
||||
|
||||
// on Windows the output dir is already needed at compile time
|
||||
// ensure the directory exists (OutDir test)
|
||||
std::string outpath = target->GetDirectory(this->GetConfigName());
|
||||
cmSystemTools::MakeDirectory(outpath.c_str());
|
||||
}
|
||||
|
||||
cmNinjaNormalTargetGenerator::~cmNinjaNormalTargetGenerator()
|
||||
|
|
Loading…
Reference in New Issue