compiling CMake 3.16 in ubuntu on arm

I am running Ubuntu trusty 14.04 and need cmake 3.16 to build musescore. I went ahead and just got newest source v. 3.2.2. Bootstrap runs but make fails with:

[ 97%] Built target cpack
Linking CXX executable ../bin/ctest
libCTestLib.a(cmCTestSubmitHandler.cxx.o): In function `cmCTestSubmitHandler::HandleCDashUploadFile(std::string const&, std::string const&)':cmCTestSubmitHandler.cxx:(.text+0x592a): undefined reference to `Json::Reader::Reader()'
cmCTestSubmitHandler.cxx:(.text+0x5942): undefined reference to `Json::Reader::parse(std::string const&, Json::Value&, bool)'
cmCTestSubmitHandler.cxx:(.text+0x599c): undefined reference to `Json::Reader::getFormattedErrorMessages() const'
cmCTestSubmitHandler.cxx:(.text+0x5eac): undefined reference to `Json::Reader::parse(std::string const&, Json::Value&, bool)'
cmCTestSubmitHandler.cxx:(.text+0x5f06): undefined reference to `Json::Reader::getFormattedErrorMessages() const'
collect2: error: ld returned 1 exit status
make[2]: *** [bin/ctest] Error 1
make[1]: *** [Source/CMakeFiles/ctest.dir/all] Error 2
make: *** [all] Error 2

Can anyone please tell me how to fix this cause I have no idea.

There’s no need to compile; you can grab the binaries: https://github.com/Kitware/CMake/releases/tag/v3.16.5

Unfortunatly, I don’t think any of those will work since I am running unbuntu in chroot on arm processor.

More recent releases (like 3.21.5) have aarch64 binaries for Linux: https://github.com/Kitware/CMake/releases/tag/v3.21.5

Thank you for your suggestions ben.boeckel. I have solved the original problem with: I said I was attempting to compile newest 3.2.2 but that was not newest, newest was 3.22.0. Once I got that it compiled fine. Now I am running into problems with qt versions but thats a different problem to solve. Again thanks for your replies.