FetchContent & CMP0135

Hello,

In Professional CMake 17th, I read some stuff about CMP0135. The book and the documentation talk only about ExternalProject_Add(), but not about FetchContent.

And then I found the following ticket :
https://gitlab.kitware.com/cmake/cmake/-/issues/23560
and the followoing merge request :
https://gitlab.kitware.com/cmake/cmake/-/merge_requests/7316/
both made by @craig.scott

The merge request seems to be done, but as there is no mention of FetchContent in the two documentation sources mentionned above, I was wondering if CMP0135 was considered by FetchContent ?

Thanks.

Yes CMP0135 should apply to FetchContent as well. I’ll take a look at updating the CMP0135 docs to make that clear when I get a chance.

OK, thank you.

Docs are being updated in this merge request: https://gitlab.kitware.com/cmake/cmake/-/merge_requests/9470