diff options
author | Regina Pfeifer <regina@mailbox.org> | 2019-09-10 19:44:48 (GMT) |
---|---|---|
committer | Regina Pfeifer <regina@mailbox.org> | 2019-09-10 20:13:11 (GMT) |
commit | 8a18bb7cdf2478d68e11a5e532b5134ea92b3678 (patch) | |
tree | e0210e119c21d5326041969831ed2e97b1ed413c /Source/cmFindPathCommand.cxx | |
parent | 95d4a2d05562c5f0a4113527d31dadef4d7756bd (diff) | |
download | CMake-8a18bb7cdf2478d68e11a5e532b5134ea92b3678.zip CMake-8a18bb7cdf2478d68e11a5e532b5134ea92b3678.tar.gz CMake-8a18bb7cdf2478d68e11a5e532b5134ea92b3678.tar.bz2 |
cmFind*: Port away from cmCommand
Diffstat (limited to 'Source/cmFindPathCommand.cxx')
-rw-r--r-- | Source/cmFindPathCommand.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/Source/cmFindPathCommand.cxx b/Source/cmFindPathCommand.cxx index 41f5e51..f5e2631 100644 --- a/Source/cmFindPathCommand.cxx +++ b/Source/cmFindPathCommand.cxx @@ -11,15 +11,15 @@ class cmExecutionStatus; -cmFindPathCommand::cmFindPathCommand() +cmFindPathCommand::cmFindPathCommand(cmExecutionStatus& status) + : cmFindBase(status) { this->EnvironmentPath = "INCLUDE"; this->IncludeFileInPath = false; } // cmFindPathCommand -bool cmFindPathCommand::InitialPass(std::vector<std::string> const& argsIn, - cmExecutionStatus&) +bool cmFindPathCommand::InitialPass(std::vector<std::string> const& argsIn) { this->VariableDocumentation = "Path to a file."; this->CMakePathName = "INCLUDE"; @@ -145,3 +145,9 @@ std::string cmFindPathCommand::FindFrameworkHeader() } return ""; } + +bool cmFindPath(std::vector<std::string> const& args, + cmExecutionStatus& status) +{ + return cmFindPathCommand(status).InitialPass(args); +} |