uyha / tree-sitter-cmake

A Tree-sitter parser for CMake
MIT License
41 stars 9 forks source link

some parse error finded from opencv #26

Closed Decodetalkers closed 2 months ago

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

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

uyha commented 2 months ago

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

Decodetalkers commented 2 months ago

thanks