MCPcopy Create free account
hub / github.com/Kitware/CMake / cmFindLibraryCommand

Class cmFindLibraryCommand

Source/cmFindLibraryCommand.h:21–42  ·  view source on GitHub ↗

\class cmFindLibraryCommand * \brief Define a command to search for a library. * * cmFindLibraryCommand is used to define a CMake variable * that specifies a library. The command searches for a given * file in a list of directories. */

Source from the content-addressed store, hash-verified

19 * file in a list of directories.
20 */
21class cmFindLibraryCommand : public cmFindBase
22{
23public:
24 cmFindLibraryCommand(cmExecutionStatus& status);
25
26 bool InitialPass(std::vector<std::string> const& args);
27
28protected:
29 void AddArchitecturePaths(char const* suffix);
30 void AddArchitecturePath(std::string const& dir,
31 std::string::size_type start_pos,
32 char const* suffix, bool fresh = true);
33 std::string FindLibrary();
34
35private:
36 std::string FindNormalLibrary();
37 std::string FindNormalLibraryNamesPerDir();
38 std::string FindNormalLibraryDirsPerName();
39 std::string FindFrameworkLibrary();
40 std::string FindFrameworkLibraryNamesPerDir();
41 std::string FindFrameworkLibraryDirsPerName();
42};
43
44bool cmFindLibrary(std::vector<std::string> const& args,
45 cmExecutionStatus& status);

Callers 1

cmFindLibraryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…