resolve cyclic dependency with zstd
[platform/upstream/cmake.git] / Source / cmFindPathCommand.h
1 /* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
2    file Copyright.txt or https://cmake.org/licensing for details.  */
3 #pragma once
4
5 #include "cmConfigure.h" // IWYU pragma: keep
6
7 #include <string>
8 #include <vector>
9
10 #include "cmFindBase.h"
11
12 class cmExecutionStatus;
13
14 /** \class cmFindPathCommand
15  * \brief Define a command to search for a library.
16  *
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.
20  */
21 class cmFindPathCommand : public cmFindBase
22 {
23 public:
24   cmFindPathCommand(cmExecutionStatus& status);
25   cmFindPathCommand(std::string findCommandName, cmExecutionStatus& status);
26
27   bool InitialPass(std::vector<std::string> const& args);
28
29   bool IncludeFileInPath;
30
31 private:
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);
38 };
39
40 bool cmFindPath(std::vector<std::string> const& args,
41                 cmExecutionStatus& status);