summaryrefslogtreecommitdiffstats
path: root/Source/cmFindFileCommand.h
diff options
context:
space:
mode:
authorRegina Pfeifer <regina@mailbox.org>2019-09-10 19:44:48 (GMT)
committerRegina Pfeifer <regina@mailbox.org>2019-09-10 20:13:11 (GMT)
commit8a18bb7cdf2478d68e11a5e532b5134ea92b3678 (patch)
treee0210e119c21d5326041969831ed2e97b1ed413c /Source/cmFindFileCommand.h
parent95d4a2d05562c5f0a4113527d31dadef4d7756bd (diff)
downloadCMake-8a18bb7cdf2478d68e11a5e532b5134ea92b3678.zip
CMake-8a18bb7cdf2478d68e11a5e532b5134ea92b3678.tar.gz
CMake-8a18bb7cdf2478d68e11a5e532b5134ea92b3678.tar.bz2
cmFind*: Port away from cmCommand
Diffstat (limited to 'Source/cmFindFileCommand.h')
-rw-r--r--Source/cmFindFileCommand.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/Source/cmFindFileCommand.h b/Source/cmFindFileCommand.h
index 152b505..7dc6e55 100644
--- a/Source/cmFindFileCommand.h
+++ b/Source/cmFindFileCommand.h
@@ -5,11 +5,13 @@
#include "cmConfigure.h" // IWYU pragma: keep
-#include "cm_memory.hxx"
+#include <string>
+#include <vector>
-#include "cmCommand.h"
#include "cmFindPathCommand.h"
+class cmExecutionStatus;
+
/** \class cmFindFileCommand
* \brief Define a command to search for an executable program.
*
@@ -21,14 +23,10 @@
class cmFindFileCommand : public cmFindPathCommand
{
public:
- cmFindFileCommand();
- /**
- * This is a virtual constructor for the command.
- */
- std::unique_ptr<cmCommand> Clone() override
- {
- return cm::make_unique<cmFindFileCommand>();
- }
+ cmFindFileCommand(cmExecutionStatus& status);
};
+bool cmFindFile(std::vector<std::string> const& args,
+ cmExecutionStatus& status);
+
#endif