summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2007-01-30 16:48:47 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2007-01-30 16:48:47 (GMT)
commit7437ceab83fc6430a4ec5044e4fcf340309bf6de (patch)
tree7c01be6d790e7d21da34ded35620ecd0680889f7 /Source
parent4a2474765f6fca803ae4cca37e0738359f704bb9 (diff)
downloadCMake-7437ceab83fc6430a4ec5044e4fcf340309bf6de.zip
CMake-7437ceab83fc6430a4ec5044e4fcf340309bf6de.tar.gz
CMake-7437ceab83fc6430a4ec5044e4fcf340309bf6de.tar.bz2
ENH: Allow to specify build target
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/cmCTestBuildCommand.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestBuildCommand.cxx b/Source/CTest/cmCTestBuildCommand.cxx
index f6a196d..52fb426 100644
--- a/Source/CTest/cmCTestBuildCommand.cxx
+++ b/Source/CTest/cmCTestBuildCommand.cxx
@@ -65,6 +65,8 @@ cmCTestGenericHandler* cmCTestBuildCommand::InitializeHandler()
= this->Makefile->GetDefinition("CTEST_BUILD_CONFIGURATION");
const char* cmakeBuildAdditionalFlags
= this->Makefile->GetDefinition("CTEST_BUILD_FLAGS");
+ const char* cmakeBuildTarget
+ = this->Makefile->GetDefinition("CTEST_BUILD_TARGET");
if ( cmakeGeneratorName && *cmakeGeneratorName &&
cmakeProjectName && *cmakeProjectName )
{
@@ -93,7 +95,7 @@ cmCTestGenericHandler* cmCTestBuildCommand::InitializeHandler()
std::string buildCommand
= this->GlobalGenerator->GenerateBuildCommand(cmakeMakeProgram,
cmakeProjectName,
- cmakeBuildAdditionalFlags, 0, cmakeBuildConfiguration, true, false);
+ cmakeBuildAdditionalFlags, cmakeBuildTarget, cmakeBuildConfiguration, true, false);
this->CTest->SetCTestConfiguration("MakeCommand", buildCommand.c_str());
}
else