Skip to content

Commit

Permalink
Fix pkgconfig name collision on Windows
Browse files Browse the repository at this point in the history
This fix is related to conan-io#10341
The previous fix did not take into account cases insensitive
filesystems. As a result the issue was still present on Windows.
OpenEXR is an example of affected recipe.
  • Loading branch information
domin144 committed Aug 7, 2023
1 parent c805c10 commit f4f2fe1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conan/tools/gnu/pkgconfigdeps.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def _update_pc_files(info):
# if it does not already exist in components one
# Issue related: https://github.com/conan-io/conan/issues/10341
pkg_name = _get_package_name(self._dep, self._build_context_suffix)
if f"{pkg_name}.pc" not in pc_files:
if not f"{pkg_name}.pc".lower() in [x.lower() for x in pc_files]:
package_info = _PCInfo(pkg_name, pkg_requires, f"Conan package: {pkg_name}",
self._dep.cpp_info, _get_package_aliases(self._dep))
# It'll be enough creating a shortened PC file. This file will be like an alias
Expand Down

0 comments on commit f4f2fe1

Please sign in to comment.