[cmake-commits] andy committed cmCTestBuildCommand.cxx 1.14 1.15

cmake-commits at cmake.org cmake-commits at cmake.org
Tue Jan 30 11:48:49 EST 2007


Update of /cvsroot/CMake/CMake/Source/CTest
In directory public:/mounts/ram/cvs-serv23858/Source/CTest

Modified Files:
	cmCTestBuildCommand.cxx 
Log Message:
ENH: Allow to specify build target


Index: cmCTestBuildCommand.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CTest/cmCTestBuildCommand.cxx,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- cmCTestBuildCommand.cxx	1 Jun 2006 19:51:24 -0000	1.14
+++ cmCTestBuildCommand.cxx	30 Jan 2007 16:48:47 -0000	1.15
@@ -65,6 +65,8 @@
       = 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 @@
       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



More information about the Cmake-commits mailing list