If the dependency defines a <project>_VERSION
variable at all, it would be in the project’s scope and would not be visible in the scope where FetchContent_MakeAvailable()
was called. I alluded to that in my earlier comment:
1 Like