Skip to content

Commit

Permalink
Specify compatible platforms for cc_library (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
hofbi authored Sep 14, 2024
1 parent 358a0ae commit 741d722
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ros/repositories/ros_comm.BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ cc_ros_library(
includes = ["clients/roscpp/include"],
linkopts = ["-lm"],
ros_package_name = "roscpp",
target_compatible_with = [
"@platforms//os:linux",
"@platforms//os:macos",
],
visibility = ["//visibility:public"],
deps = [
":cc_roscpp",
Expand Down
4 changes: 4 additions & 0 deletions ros/repositories/roscpp_core.BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ cc_ros_library(

cc_library(
name = "roscpp_core",
target_compatible_with = [
"@platforms//os:linux",
"@platforms//os:macos",
],
visibility = ["//visibility:public"],
deps = [
":cpp_common",
Expand Down

0 comments on commit 741d722

Please sign in to comment.