From 46b723e5edb129bcfaa3e6df85be2f7dfb55ea83 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 6 Jun 2018 16:27:44 +1000 Subject: [PATCH] cmake: Fix COMPONENT_SRCEXCLUDE functionality --- tools/cmake/components.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/cmake/components.cmake b/tools/cmake/components.cmake index fc7c7f5ed..0056a3b4a 100644 --- a/tools/cmake/components.cmake +++ b/tools/cmake/components.cmake @@ -46,7 +46,7 @@ function(register_component) foreach(src ${COMPONENT_SRCS}) get_filename_component(abs_src "${src}" ABSOLUTE ${component_dir}) if("${exclude}" STREQUAL "${abs_src}") # compare as canonical paths - list(REMOVE_ITEM COMPONENT_SRCS src) + list(REMOVE_ITEM COMPONENT_SRCS "${src}") endif() endforeach() endforeach()