Skip to content

Commit c7b8dcc

Browse files
committed
[test] Add /usr/local/lib to search paths for macOS.
1 parent 5fe3173 commit c7b8dcc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/Common.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,10 @@ std::optional<fs::path> findInDefaultPath(std::string const& lib_name)
7878
fs::current_path() / ".." / "deps" / "lib",
7979
fs::current_path() / ".." / ".." / "deps",
8080
fs::current_path() / ".." / ".." / "deps" / "lib",
81-
fs::current_path()
81+
fs::current_path(),
82+
#ifdef __APPLE__
83+
fs::current_path().root_path() / fs::path("usr") / "local" / "lib",
84+
#endif
8285
};
8386
for (auto const& basePath: searchPath)
8487
{

0 commit comments

Comments
 (0)