diff --git a/cmake/macros/BuildMetalib.cmake b/cmake/macros/BuildMetalib.cmake index 50d16af44a..4fc483c0ef 100644 --- a/cmake/macros/BuildMetalib.cmake +++ b/cmake/macros/BuildMetalib.cmake @@ -58,8 +58,8 @@ if(CMAKE_VERSION VERSION_LESS "3.12") set(is_object "$,OBJECT_LIBRARY>") set(is_component "$>") - set(name_of_component "$<${is_component}:${library}>") - set(name_of_non_component "$<$:${library}>") + set(name_of_component "$<${is_component}:$>") + set(name_of_non_component "$<$:$>") endif() # Libraries are only linked transitively if they aren't components.