1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2 file Copyright.txt or https://cmake.org/licensing for details. */
5 #include "cmConfigure.h" // IWYU pragma: keep
10 #include "cmFindBase.h"
12 class cmExecutionStatus;
14 /** \class cmFindPathCommand
15 * \brief Define a command to search for a library.
17 * cmFindPathCommand is used to define a CMake variable
18 * that specifies a library. The command searches for a given
19 * file in a list of directories.
21 class cmFindPathCommand : public cmFindBase
24 cmFindPathCommand(cmExecutionStatus& status);
25 cmFindPathCommand(std::string findCommandName, cmExecutionStatus& status);
27 bool InitialPass(std::vector<std::string> const& args);
29 bool IncludeFileInPath;
32 std::string FindHeaderInFramework(std::string const& file,
33 std::string const& dir,
34 cmFindBaseDebugState& debug) const;
35 std::string FindHeader();
36 std::string FindNormalHeader(cmFindBaseDebugState& debug);
37 std::string FindFrameworkHeader(cmFindBaseDebugState& debug);
40 bool cmFindPath(std::vector<std::string> const& args,
41 cmExecutionStatus& status);