не собирается софт с cmake, например mcabber_mnotify

https://github.com/admincheg/mcabber_mnotify

CMakeError.log:

Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /usr/bin/cc 
Build flags: ${CFLAGS};-ltinfo
Id flags: 

The output was:
1
gcc: error: ${CFLAGS}: No such file or directory


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /usr/bin/cc 
Build flags: ${CFLAGS};-ltinfo
Id flags: -c

The output was:
1
gcc: error: ${CFLAGS}: No such file or directory


Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
Compiler: /usr/bin/cc 
Build flags: ${CFLAGS};-ltinfo
Id flags: -Aa

The output was:
1
gcc: error: ${CFLAGS}: No such file or directory


Checking whether the C compiler is IAR using "" did not match "IAR .+ Compiler":
gcc: error: ${CFLAGS}: No such file or directory
Determining if the C compiler works failed with the following output:
Change Dir: /home/??/mcabber_mnotify/build/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/gmake" "cmTC_a5042/fast"
/usr/bin/gmake -f CMakeFiles/cmTC_a5042.dir/build.make CMakeFiles/cmTC_a5042.dir/build
gmake[1]: Entering directory '/home/??/mcabber_mnotify/build/CMakeFiles/CMakeTmp'
CMakeFiles/cmTC_a5042.dir/flags.make:5: *** Recursive variable 'CFLAGS' references itself (eventually).  Stop.
gmake[1]: Leaving directory '/home/??/mcabber_mnotify/build/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_a5042/fast' failed
gmake: *** [cmTC_a5042/fast] Error 2

Замаскировать текущую версию cmake и установить более старую версию не пробовали?