summaryrefslogtreecommitdiffstats
path: root/Source/cmCTest.cxx
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-09 17:18:15 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-07-09 17:18:15 (GMT)
commite015e103709fe12c57bd94207002eafa53733088 (patch)
treeb879f690dc22367fede57a6b39c7fdbe05a11ae9 /Source/cmCTest.cxx
parent8f4f1c85078cf5b641d2d35dd185e72121bfb24d (diff)
downloadCMake-e015e103709fe12c57bd94207002eafa53733088.zip
CMake-e015e103709fe12c57bd94207002eafa53733088.tar.gz
CMake-e015e103709fe12c57bd94207002eafa53733088.tar.bz2
ENH: Pass -C flag to cmake to generate the apropriate build command
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r--Source/cmCTest.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index e7fc7e0..6ec234e 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -1336,6 +1336,12 @@ int cmCTest::Run(std::vector<std::string>const& args, std::string* output)
i++;
this->ConfigType = args[i];
cmSystemTools::ReplaceString(this->ConfigType, ".\\", "");
+ if ( !this->ConfigType.empty() )
+ {
+ std::string confTypeEnv
+ = "CMAKE_CONFIG_TYPE=" + this->ConfigType;
+ cmSystemTools::PutEnv(confTypeEnv.c_str());
+ }
}
if(this->CheckArgument(arg, "--debug"))