cmake: Fix COMPONENT_SRCEXCLUDE functionality
This commit is contained in:
parent
4667fb2495
commit
46b723e5ed
|
@ -46,7 +46,7 @@ function(register_component)
|
||||||
foreach(src ${COMPONENT_SRCS})
|
foreach(src ${COMPONENT_SRCS})
|
||||||
get_filename_component(abs_src "${src}" ABSOLUTE ${component_dir})
|
get_filename_component(abs_src "${src}" ABSOLUTE ${component_dir})
|
||||||
if("${exclude}" STREQUAL "${abs_src}") # compare as canonical paths
|
if("${exclude}" STREQUAL "${abs_src}") # compare as canonical paths
|
||||||
list(REMOVE_ITEM COMPONENT_SRCS src)
|
list(REMOVE_ITEM COMPONENT_SRCS "${src}")
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
Loading…
Reference in a new issue