diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2007-01-30 16:48:47 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2007-01-30 16:48:47 (GMT) |
commit | 7437ceab83fc6430a4ec5044e4fcf340309bf6de (patch) | |
tree | 7c01be6d790e7d21da34ded35620ecd0680889f7 /Source/CTest | |
parent | 4a2474765f6fca803ae4cca37e0738359f704bb9 (diff) | |
download | CMake-7437ceab83fc6430a4ec5044e4fcf340309bf6de.zip CMake-7437ceab83fc6430a4ec5044e4fcf340309bf6de.tar.gz CMake-7437ceab83fc6430a4ec5044e4fcf340309bf6de.tar.bz2 |
ENH: Allow to specify build target
Diffstat (limited to 'Source/CTest')
-rw-r--r-- | Source/CTest/cmCTestBuildCommand.cxx | 4 |
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 |