uyha/tree-sitter-cmake

some parse error finded from opencv

Closed this issue · 3 comments

if(dep MATCHES "^\\$<LINK_ONLY:([^>]+)>$")
       set(dep "${CMAKE_MATCH_1}")
 endif()
if(dep MATCHES "^\\$<")
       message(WARNING "Unexpected CMake generator expression: ${dep}")
endif()

https://github.com/opencv/opencv/blob/4.x/cmake/OpenCVUtils.cmake#L1705 it if from this file , and error part is the snippet above

uyha commented

yup, i see the problem, I will try to fix it today

uyha commented

fixed now by removing gen_exp (checkout the commit for more details why).

thanks