On Thu, Jul 30, 2009 at 01:21:45AM +0200, reyman wrote: > I have file extension .m and .h in my src folder, my compiler is GCC. > When i want to compile, this is /usr/bin/c++ who launch and compile ... i > don't understand why CMake doesn't recognize the .m file and use the C > compilator gcc.
Have you tried playing with enable_language()? I'm guessing CMake doesn't know that it should use gcc with .m files and is defaulting to C++ mode. > If a try to modify CXX Compiler for gcc, i have "stray error" in all my > source file when LD link the .o ... So, a very bad solution ... How did you modify the compiler? tyler _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake