skvadrik / re2c

Lexer generator for C, C++, Go and Rust.
https://re2c.org
Other
1.06k stars 169 forks source link

Use Python version in find_package() #477

Closed petk closed 4 months ago

petk commented 4 months ago

This simplifies the find_package() call. The version in find_package() has been initially supported in CMake 2 and 3. Version ranges (versionMin...[<]versionMax), on the other hand, are only supported by CMake 3.19+.

And this also helps a bit when adding re2c as a FetchContent dependency in CMake project where finding Python is not necessary and can be disabled with CMAKE_DISABLE_FIND_PACKAGE_Python3 variable.

skvadrik commented 4 months ago

Thanks!