Determine the appropriate version for cmake_minimum_required ()

From the CMakeLists.txt , how can I determine the corresponding version number for cmake_minimum_required() ? Is there a better way than getting to know the history of CMake functions and using trial and error?

+2
source share
1 answer

CMake has documentation for each version on its website. Using it, you can verify that all the functions used in your project are supported by a specific version of CMake.

Features include command names, command parameters and their possible meanings, names of modules supplied with CMake.

Typically, a project does not need an exact minimum version of CMake. You can accept the reasonable version available to users and check if this version supports all the functions that you use.

0
source

Source: https://habr.com/ru/post/1273567/


All Articles