[BAZEL] remove windows warning

This commit is contained in:
Laurent Perron
2021-11-30 10:38:48 +01:00
parent 21df82251d
commit 201a07bb3a
2 changed files with 8 additions and 1 deletions

View File

@@ -184,7 +184,12 @@ cc_library(
hdrs = [
"recordio.h",
],
linkopts = ["-lz"],
linkopts = select({
"on_linux": ["-lz"],
"on_macos": ["-lz"],
"on_windows": [],
"//conditions:default": ["-lz"],
}),
deps = [
":base",
":file",

View File

@@ -1,3 +1,5 @@
exports_files(["CMakeLists.txt"] + glob(["*.cc"]) + glob(["*.cs"]) + glob(["*.py"]))
load(":code_samples.bzl", "code_sample_cc")
code_sample_cc(name = "minimal_jobshop_cp")