I don't know of a tool that will determine the minimum cmake version by parsing your CMakeLists.txt, however, there is a tool that will automate the process of checking with every version of cmake: https://github.com/nlohmann/cmake_min_version