Skip to content

Commit 0c90aff

Browse files
committed
Sanitize picotls source-prefixed invalid link directories
1 parent 8032006 commit 0c90aff

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ function(openmoq_sanitize_target_link_directories target_name)
3030
endif()
3131

3232
set(filtered_value "${property_value}")
33-
list(FILTER filtered_value EXCLUDE REGEX "^\\($|^\\)$")
33+
# picotls can inject literal "(" and ")" via pkg-config parsing; after
34+
# CMake normalization these may appear as source-prefixed "/.../(" and
35+
# "/.../)" paths. Drop both raw and normalized forms.
36+
list(FILTER filtered_value EXCLUDE REGEX "^\\($|^\\)$|.*/\\($|.*/\\)$")
3437
set_target_properties("${target_name}" PROPERTIES "${property_name}" "${filtered_value}")
3538
endforeach()
3639
endfunction()

0 commit comments

Comments
 (0)