Modernize CMake. May have problem of missing librt on linux

2 jobs for master in 1 minute and 56 seconds
Status Name Job ID Coverage
  Test
failed build:bionic #1729

00:01:42

failed build:cosmic #1730

00:00:14

 
Name Stage Failure
failed
build:cosmic Test
Ign:7 http://security.ubuntu.com/ubuntu cosmic-security InRelease
Err:8 http://security.ubuntu.com/ubuntu cosmic-security Release
404 Not Found [IP: 91.189.91.39 80]
Reading package lists...
E: The repository 'http://archive.ubuntu.com/ubuntu cosmic Release' does not have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu cosmic-updates Release' does not have a Release file.
E: The repository 'http://archive.ubuntu.com/ubuntu cosmic-backports Release' does not have a Release file.
E: The repository 'http://security.ubuntu.com/ubuntu cosmic-security Release' does not have a Release file.
ERROR: Job failed: exit code 1
failed
build:bionic Test

Fail executing 'developer_tools/install_project.sh blibs/blc_core Release'

Install blibs/blc_core
===============
Compiling **/builds/blaar/blaar/blaar/blibs/blc_core**
Not searching for unused variables given on the command line.

ERROR: Job failed: exit code 1