I have built many open sources with gcc 4.9.1 on CentOS 6.8 platform, but I could not build this one and I have no idea what was wrong with this CMakeLists.txt, I have attached both CMakeLists.txt and CMakeError.log, appreciate any clues what was missing. Thank you.
$ ls /usr/local/cppcms/1.1.0/include booster cppcms
Re: Failed to build C++ source with CMakeLists.txt
Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: /usr/local/gcc/4.9.1/bin/gcc Build flags: /usr/local/cppcms/1.1.0/include
It looks like you have an errant "/usr/local/cppcms/1.1.0/include" set in your CFLAGS environment variable, or otherwise specified as a default argument to the compiler, which is obviously not a valid flag.