From 5a31844e11f23d3e549c86f0b20a87f1f976f642 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Thu, 19 Apr 2018 00:05:21 -0600 Subject: [PATCH] CMake: Slightly tweak component-library -D inheritance rules This only inherits -D flags from another component library. The private -D flags should not be inherited from regular libraries. --- cmake/macros/BuildMetalib.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/macros/BuildMetalib.cmake b/cmake/macros/BuildMetalib.cmake index b42c35b7f2..e744834374 100644 --- a/cmake/macros/BuildMetalib.cmake +++ b/cmake/macros/BuildMetalib.cmake @@ -30,7 +30,7 @@ function(target_link_libraries target) # Also build with the same BUILDING_ macros, because these will all end # up in the same library. - set(compile_definitions "$") + set(compile_definitions "$<$>:$>") set_property(TARGET "${target}" APPEND PROPERTY COMPILE_DEFINITIONS "${compile_definitions}") # Libraries are only linked transitively if they aren't components.