SenseApiMgr: Permit multiple lib search paths

This commit is contained in:
2025-07-23 00:12:50 -04:00
parent 020a4968e5
commit 064dc43fbc
3 changed files with 13 additions and 12 deletions
+6 -2
View File
@@ -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)