Skip to content

Commit

Permalink
Add support for conda
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jun 15, 2023
1 parent 6ca4d76 commit 57e87f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/pkg-config.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2008-2022 Sutou Kouhei <kou@cozmixng.org>
# Copyright 2008-2023 Sutou Kouhei <kou@cozmixng.org>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -170,6 +170,10 @@ def compute_default_path
default_paths << (pkg_config_prefix + "libdata/pkgconfig").to_s
default_paths << (pkg_config_prefix + "share/pkgconfig").to_s
end
conda_prefix = ENV["CONDA_PREFIX"]
if conda_prefix
default_paths << File.join(conda_prefix, "lib", "pkgconfig")
end
default_paths << "/usr/local/lib64/pkgconfig"
default_paths << "/usr/local/libx32/pkgconfig"
default_paths << "/usr/local/lib/pkgconfig"
Expand Down

0 comments on commit 57e87f4

Please sign in to comment.