diff options
author | Peter Kuemmel <syntheticpp@gmx.net> | 2012-02-23 18:39:54 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2012-03-07 21:24:33 (GMT) |
commit | f1bb08f55b1ee0e8ae72d66289ad89ad27d75701 (patch) | |
tree | 1d40292ca287d5eecb543ffedbfd3c850f73520c | |
parent | 7a6b5f465122a9da1f9439ec3cec461e1c0c999c (diff) | |
download | CMake-f1bb08f55b1ee0e8ae72d66289ad89ad27d75701.zip CMake-f1bb08f55b1ee0e8ae72d66289ad89ad27d75701.tar.gz CMake-f1bb08f55b1ee0e8ae72d66289ad89ad27d75701.tar.bz2 |
Ninja: ensure the output dir exists at compile time
-rw-r--r-- | Source/cmNinjaNormalTargetGenerator.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx index 88f6f87..f4069c7 100644 --- a/Source/cmNinjaNormalTargetGenerator.cxx +++ b/Source/cmNinjaNormalTargetGenerator.cxx @@ -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() |