Explorar o código

cmake: Fix COMPONENT_SRCEXCLUDE functionality

Angus Gratton %!s(int64=7) %!d(string=hai) anos
pai
achega
46b723e5ed
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/cmake/components.cmake

+ 1 - 1
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()