From e49306fec91488a0f79f3c81a60621adefbc21c3 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Tue, 27 Nov 2018 22:42:15 -0700 Subject: [PATCH] CMake: Wrap target names in $ This helps CMake's export generator understand the expression. --- cmake/macros/BuildMetalib.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.