Skip to content

Commit 4fff334

Browse files
authored
examples: enable libssh2 on windows (#1523)
The static library name on Windows is libssh2.lib, not ssh2.lib.
1 parent 3e1911a commit 4fff334

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

examples/third_party/libssh2/BUILD.libssh2.bazel

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,9 @@ cmake(
2727
}),
2828
lib_source = ":all_srcs",
2929
out_static_libs = select({
30-
# TODO: I'm guessing at this name. Needs to be checked on windows.
31-
"@platforms//os:windows": ["ssh2.lib"],
30+
"@platforms//os:windows": ["libssh2.lib"],
3231
"//conditions:default": ["libssh2.a"],
3332
}),
34-
target_compatible_with = select({
35-
"@platforms//os:windows": ["@rules_foreign_cc_examples_third_party//:broken"],
36-
"//conditions:default": [],
37-
}),
3833
visibility = ["//visibility:public"],
3934
deps = ["@openssl"],
4035
)

0 commit comments

Comments
 (0)