Skip to content

Commit 4d089bf

Browse files
committed
Another try...
1 parent 50a89d5 commit 4d089bf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

third_party/tiff-4.7.1/BUILD.bazel

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,12 @@ cc_library(
180180
# VERSION file is now valid C++ to prevent collision with <version> on Windows
181181
# Added to hdrs (not textual_hdrs) so Bazel properly tracks it as a dependency
182182
"VERSION",
183-
# Lowercase version for Bazel's case-sensitive dependency tracking on Windows
184-
"version",
185-
],
183+
] + select({
184+
# On Windows (case-insensitive filesystem), Bazel tracks the include as lowercase
185+
# 'version' even though the file is 'VERSION'. We add it so Bazel can find it.
186+
"@platforms//os:windows": ["version"],
187+
"//conditions:default": [],
188+
}),
186189
implementation_deps = [":tiff_impl"],
187190
includes = [
188191
"libtiff",

0 commit comments

Comments
 (0)