summaryrefslogtreecommitdiffstats
path: root/Source/cmBuildCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2006-07-24 15:19:42 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2006-07-24 15:19:42 (GMT)
commitecf914e6975b75166df2a0f36744221fe3b80899 (patch)
treefed23def8dcd0943d806ffe158d32e145f26e3bb /Source/cmBuildCommand.cxx
parent3776cfa0eb5bd7e6d6863b2e342aadc7739bf90f (diff)
downloadCMake-ecf914e6975b75166df2a0f36744221fe3b80899.zip
CMake-ecf914e6975b75166df2a0f36744221fe3b80899.tar.gz
CMake-ecf914e6975b75166df2a0f36744221fe3b80899.tar.bz2
ENH: move changes from main tree to release branch
Diffstat (limited to 'Source/cmBuildCommand.cxx')
-rw-r--r--Source/cmBuildCommand.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/Source/cmBuildCommand.cxx b/Source/cmBuildCommand.cxx
index 405b463..fd3760c 100644
--- a/Source/cmBuildCommand.cxx
+++ b/Source/cmBuildCommand.cxx
@@ -31,10 +31,16 @@ bool cmBuildCommand::InitialPass(std::vector<std::string> const& args)
const char* cacheValue
= this->Makefile->GetDefinition(define);
std::string makeprogram = args[1];
+ std::string configType = "Release";
+ const char* cfg = getenv("CMAKE_CONFIG_TYPE");
+ if ( cfg )
+ {
+ configType = cfg;
+ }
std::string makecommand = this->Makefile->GetLocalGenerator()
->GetGlobalGenerator()->GenerateBuildCommand
(makeprogram.c_str(), this->Makefile->GetProjectName(), 0,
- 0, "Release", true, false);
+ 0, configType.c_str(), true, false);
if(cacheValue)
{