use a proper cc_library for the miniz library (#96957)

use a proper cc_library for the miniz library

Summary:
Using "include" is hostile to the Bazel way of doing things.

Test Plan: Rely on CI.

Reviewers:

Subscribers:

Tasks:

Tags:

---
Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/pytorch/pytorch/pull/96957).
* __->__ #96957
* #96956
* #96955
Pull Request resolved: https://github.com/pytorch/pytorch/pull/96957
Approved by: https://github.com/PaliC
This commit is contained in:
mikey dagitses 2023-03-21 21:39:43 +00:00 committed by PyTorch MergeBot
parent d9b289b747
commit b615b7ef9e
2 changed files with 1 additions and 1 deletions

View file

@ -1370,7 +1370,6 @@ cc_library(
includes = [
"caffe2/contrib/aten",
"caffe2/core/nomnigraph/include",
"third_party/miniz-2.1.0",
],
visibility = ["//visibility:public"],
deps = [

View file

@ -6,5 +6,6 @@ cc_library(
hdrs = [
"miniz.h",
],
strip_include_prefix = ".",
visibility = ["//visibility:public"],
)