summaryrefslogtreecommitdiffstats
path: root/Source/cmFindFileCommand.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-05-02 12:20:56 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2021-05-11 16:16:08 (GMT)
commitb1729200c318dab23daac8643da5f9fdc673a5ef (patch)
tree46da1a315c6cc75fb22e63d07b667f31c9254de8 /Source/cmFindFileCommand.cxx
parentee87e53d3732a6482841c01c16e89f2822137d0e (diff)
downloadCMake-b1729200c318dab23daac8643da5f9fdc673a5ef.zip
CMake-b1729200c318dab23daac8643da5f9fdc673a5ef.tar.gz
CMake-b1729200c318dab23daac8643da5f9fdc673a5ef.tar.bz2
find_*: refactor cache variable handling
Diffstat (limited to 'Source/cmFindFileCommand.cxx')
-rw-r--r--Source/cmFindFileCommand.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmFindFileCommand.cxx b/Source/cmFindFileCommand.cxx
index 29a2bc4..a88c1b1 100644
--- a/Source/cmFindFileCommand.cxx
+++ b/Source/cmFindFileCommand.cxx
@@ -2,12 +2,15 @@
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmFindFileCommand.h"
+#include "cmStateTypes.h"
+
class cmExecutionStatus;
cmFindFileCommand::cmFindFileCommand(cmExecutionStatus& status)
- : cmFindPathCommand(status)
+ : cmFindPathCommand("find_file", status)
{
this->IncludeFileInPath = true;
+ this->VariableType = cmStateEnums::FILEPATH;
}
bool cmFindFile(std::vector<std::string> const& args,