Closed mrquincle closed 2 years ago
This can remove all from_hex and to_hex helper functions.
An Ubuntu LTS is supported for 5 years, so 18.04 is still a valid version. However, it's quite simple indeed to upgrade the cmake version, so i'm ok with bumping the requirement to 3.20.
This is part of branch https://github.com/crownstone/bluenet/tree/cmake-and-runtime but PR will only be opened after acceptance of current open ones.
The
cmake
build tool is versatile, but the syntax is ugly. We're supporting quite an oldcmake
version. Many files from Zephyr (which we will be relevant for supporting Matter on the nRF52840) state:Hence, we shouldn't stick to the cmake version supplied with an operating system. For example, if you're on LTS for Ubuntu, you'll be at 20.04 which has cmake version 3.16.3: https://launchpad.net/ubuntu/focal/+source/cmake. You can however easily update to a more modern version of cmake without having to compile anything yourselves. Check the instructions yourself on https://apt.kitware.com/.
If we bump the
cmake
version we can for example remove a lot of the calculations around hexadecimal values (which is a moderately recent addition tocmake
).If we do so, we of course have to instruct people on how to get a more modern version of
cmake
on their system. When we've described this properly it's time to enforce it.