Bazel/CMake: drop confusing _INTERNAL_TRANSITION suffix

This commit is contained in:
Paolo Tranquilli
2024-01-10 12:00:40 +01:00
parent c9cf2a899c
commit b93d108400

View File

@@ -22,7 +22,11 @@ CmakeInfo = provider(
)
def _cmake_name(label):
return ("%s_%s_%s" % (label.workspace_name, label.package, label.name)).replace("/", "_")
ret = ("%s_%s_%s" % (label.workspace_name, label.package, label.name)).replace("/", "_")
internal_transition_suffix = "_INTERNAL_TRANSITION"
if ret.endswith(internal_transition_suffix):
ret = ret[:-len(internal_transition_suffix)]
return ret
def _cmake_file(file):
if not file.is_source: