Failed to build C++ source with CMakeLists.txt

classic Classic list List threaded Threaded
2 messages Options
hce
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Failed to build C++ source with CMakeLists.txt

hce
Hi,

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


--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

CMakeLists.txt (3K) Download Attachment
CMakeError.log (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Failed to build C++ source with CMakeLists.txt

Chuck Atkins
Hi Jupiter,


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.

- Chuck

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake
Loading...