You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!file_exists(BUILD_LIB_PATH . "/pkgconfig/{$file}.pc")) {
231
-
thrownewWrongUsageException("pkg-config file '{$file}.pc' for lib [{$library}] does not exist in '" . BUILD_LIB_PATH . "/pkgconfig'. Please build it first.");
232
+
$found = false;
233
+
foreach ($search_pathsas$path) {
234
+
if (file_exists($path . "/{$file}.pc")) {
235
+
$found = true;
236
+
}
237
+
}
238
+
if (!$found) {
239
+
thrownewWrongUsageException("pkg-config file '{$file}.pc' for lib [{$library}] does not exist. Please build it first.");
232
240
}
233
241
}
234
242
$pc_cflags = implode('', $pc);
@@ -257,9 +265,17 @@ private function getLibsString(array $libraries, bool $use_short_libs = true): s
if (!file_exists(BUILD_LIB_PATH . "/pkgconfig/{$pkg_config}.pc")) {
262
-
thrownewWrongUsageException("pkg-config file '{$pkg_config}.pc' for lib [{$library}] does not exist in '" . BUILD_LIB_PATH . "/pkgconfig'. Please build it first.");
0 commit comments