Function rcpputils::path_for_library

Function Documentation

std::string rcpputils::path_for_library(const std::string &directory, const std::string &library_name)

Construct the filepath for a library given its directory, and checks that it exists.

Parameters:
  • directory[in] The directory that contains the library.

  • library_name[in] Name of the library to find.

Returns:

The absolute filesystem path, including the appropriate prefix and extension, or the empty string when the library does not exist.