gui_starter_template
gui_starter_template copied to clipboard
Demonstrate how to use [max] in cmake_minimum_required(VERSION <min>[...<max>]
Currently a specific version of CMake is specified in the CMakeLists.txt:
https://github.com/lefticus/cpp_starter_project/blob/d7a2b6b891d75edc68c9d88dca7e24cd73e378b8/CMakeLists.txt#L1
CMake makes it however also possible (3.12 feature, but backwards compatible) to indicate a version range by using the format:
cmake_minimum_required(VERSION <min>[...<max>])
for example:
cmake_minimum_required(VERSION 3.13...3.17)
This makes it easier to use a wider range of CMake versions. Updating CMake on CI systems is sometimes difficult and proving a range could help to see that the current CMake version is already compatible.