From d127105293e2654458833c45289ceec0530dece8 Mon Sep 17 00:00:00 2001 From: Markus Hofbauer Date: Tue, 1 Oct 2024 00:06:51 +0200 Subject: [PATCH] Define compatible targets for cpp_common --- ros/repositories/roscpp_core.BUILD.bazel | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ros/repositories/roscpp_core.BUILD.bazel b/ros/repositories/roscpp_core.BUILD.bazel index 2adf42c..0839eee 100644 --- a/ros/repositories/roscpp_core.BUILD.bazel +++ b/ros/repositories/roscpp_core.BUILD.bazel @@ -15,6 +15,12 @@ cc_ros_library( "HAVE_CXXABI_H", "HAVE_GLIBC_BACKTRACE", ], + target_compatible_with = selects.with_or( + { + ("@platforms//os:linux", "@platforms//os:macos"): [], + "//conditions:default": ["@platforms//:incompatible"], + }, + ), visibility = ["//visibility:public"], deps = [ "@boost//:system",