Min and max required CMake versions being defined but not re-used

I’ve noticed that in the top-level CMakeLists.txt we are defining some min and max bounds for the required CMake versions, mainly labeled as having to do with CMake policies:

I assume these min and max versions should apply to any project within ITK, including the third parties or remotes. Please correct me if I’m wrong.

A quick search of the cmake_minimum_required string provides:

That is, the variable defined in the top-level project is not used or propagated to othe CMakeLists.txt files within ITK.

Is there some reason for this? Am I missing something?

If it should be, I am happy to submit a PR.


I think that subdirectories inherit minimum version specification, so it is not needed to repeat it.

OK, not sure why we’ve been adding the command across different CMakeLists.txt files then.