uyha / tree-sitter-cmake

A Tree-sitter parser for CMake
MIT License
43 stars 10 forks source link

some parse error finded from opencv #26

Closed Decodetalkers closed 5 months ago

Decodetalkers commented 5 months ago
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 5 months ago

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

uyha commented 5 months ago

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

Decodetalkers commented 5 months ago

thanks