| 450 | } |
| 451 | |
| 452 | bool HandleNormalPathCommand(std::vector<std::string> const& args, |
| 453 | cmExecutionStatus& status) |
| 454 | { |
| 455 | static OutputVariableParser const parser{}; |
| 456 | |
| 457 | auto const arguments = parser.Parse(args); |
| 458 | |
| 459 | if (arguments.MaybeReportError(status.GetMakefile())) { |
| 460 | return true; |
| 461 | } |
| 462 | |
| 463 | if (!parser.GetInputs().empty()) { |
| 464 | status.SetError("NORMAL_PATH called with unexpected arguments."); |
| 465 | return false; |
| 466 | } |
| 467 | |
| 468 | std::string inputPath; |
| 469 | if (!getInputPath(args[1], status, inputPath)) { |
| 470 | return false; |
| 471 | } |
| 472 | |
| 473 | auto path = cmCMakePath(inputPath).Normal(); |
| 474 | |
| 475 | status.GetMakefile().AddDefinition( |
| 476 | arguments.Output ? *arguments.Output : args[1], path.String()); |
| 477 | |
| 478 | return true; |
| 479 | } |
| 480 | |
| 481 | bool HandleTransformPathCommand( |
| 482 | std::vector<std::string> const& args, cmExecutionStatus& status, |
nothing calls this directly
no test coverage detected
searching dependent graphs…