mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-23 07:28:51 -06:00
option to make utilities in the all target
This commit is contained in:
@@ -43,16 +43,27 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
// cmAddCustomTargetCommand
|
||||
bool cmAddCustomTargetCommand::Invoke(std::vector<std::string>& args)
|
||||
{
|
||||
bool all = false;
|
||||
|
||||
if(args.size() < 2 )
|
||||
{
|
||||
this->SetError("called with incorrect number of arguments");
|
||||
return false;
|
||||
}
|
||||
std::vector<std::string> dep;
|
||||
m_Makefile->ExpandVariablesInString(args[0]);
|
||||
m_Makefile->ExpandVariablesInString(args[1]);
|
||||
|
||||
// all target option
|
||||
if (args.size() >= 3)
|
||||
{
|
||||
if (args[2] == "ALL")
|
||||
{
|
||||
all = true;
|
||||
}
|
||||
}
|
||||
m_Makefile->AddUtilityCommand(args[0].c_str(),
|
||||
args[1].c_str());
|
||||
args[1].c_str(), all);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user