[Cmake-commits] [cmake-commits] king committed cmMakefile.cxx 1.484 1.485 cmMakefile.h 1.236 1.237
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Oct 9 11:00:57 EDT 2008
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv25621/Source
Modified Files:
cmMakefile.cxx cmMakefile.h
Log Message:
ENH: Return utility target after creation
After creating a utility target with AddUtilityCommand, return a pointer
to the cmTarget instance so the caller may further modify the target as
needed.
Index: cmMakefile.h
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmMakefile.h,v
retrieving revision 1.236
retrieving revision 1.237
diff -C 2 -d -r1.236 -r1.237
*** cmMakefile.h 24 Sep 2008 12:51:33 -0000 1.236
--- cmMakefile.h 9 Oct 2008 15:00:54 -0000 1.237
***************
*** 201,210 ****
const char* arg3=0,
const char* arg4=0);
! void AddUtilityCommand(const char* utilityName, bool excludeFromAll,
! const char* workingDirectory,
! const std::vector<std::string>& depends,
! const cmCustomCommandLines& commandLines,
! bool escapeOldStyle = true,
! const char* comment = 0);
/**
--- 201,210 ----
const char* arg3=0,
const char* arg4=0);
! cmTarget* AddUtilityCommand(const char* utilityName, bool excludeFromAll,
! const char* workingDirectory,
! const std::vector<std::string>& depends,
! const cmCustomCommandLines& commandLines,
! bool escapeOldStyle = true,
! const char* comment = 0);
/**
Index: cmMakefile.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmMakefile.cxx,v
retrieving revision 1.484
retrieving revision 1.485
diff -C 2 -d -r1.484 -r1.485
*** cmMakefile.cxx 1 Oct 2008 13:04:27 -0000 1.484
--- cmMakefile.cxx 9 Oct 2008 15:00:54 -0000 1.485
***************
*** 983,992 ****
//----------------------------------------------------------------------------
! void cmMakefile::AddUtilityCommand(const char* utilityName,
! bool excludeFromAll,
! const char* workingDirectory,
! const std::vector<std::string>& depends,
! const cmCustomCommandLines& commandLines,
! bool escapeOldStyle, const char* comment)
{
// Create a target instance for this utility.
--- 983,993 ----
//----------------------------------------------------------------------------
! cmTarget*
! cmMakefile::AddUtilityCommand(const char* utilityName,
! bool excludeFromAll,
! const char* workingDirectory,
! const std::vector<std::string>& depends,
! const cmCustomCommandLines& commandLines,
! bool escapeOldStyle, const char* comment)
{
// Create a target instance for this utility.
***************
*** 1026,1029 ****
--- 1027,1031 ----
force.c_str());
}
+ return target;
}
More information about the Cmake-commits
mailing list