SenseApiMgr: Permit multiple lib search paths
This commit is contained in:
@@ -35,10 +35,14 @@ static std::optional<std::string> findLibraryPath(
|
||||
fs::path("/proc/self/exe").parent_path().string()
|
||||
};
|
||||
|
||||
if (!OptionParser::getOptions().senseApiLibPath.empty())
|
||||
const auto& options = OptionParser::getOptions();
|
||||
if (!options.senseApiLibPath.empty())
|
||||
{
|
||||
// Insert all sense API library paths at the beginning of search paths
|
||||
searchPaths.insert(
|
||||
searchPaths.begin(), OptionParser::getOptions().senseApiLibPath);
|
||||
searchPaths.begin(),
|
||||
options.senseApiLibPath.begin(),
|
||||
options.senseApiLibPath.end());
|
||||
}
|
||||
|
||||
for (const auto& path : searchPaths)
|
||||
|
||||
Reference in New Issue
Block a user