See this post to this list from just a few days ago:<br><br><a href="http://www.cmake.org/pipermail/cmake/2007-July/015224.html">http://www.cmake.org/pipermail/cmake/2007-July/015224.html</a><br><br>The short answer is to do this for the .c file in your 
CMakeLists.txt file:<br><pre>SET_SOURCE_FILES_PROPERTIES( ${C_SOURCE} PROPERTIES LANGUAGE CXX)</pre><br>HTH,<br>David<br><br><br><div><span class="gmail_quote">On 7/28/07, <b class="gmail_sendername">Timur Ivanov</b> &lt;
<a href="mailto:timur.ivanov@gmail.com">timur.ivanov@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello!<br>
<br>Is there any way to tell cmake that certain file with .c extension<br>have to be compiled by c++ compiler ?<br>_______________________________________________<br>CMake mailing list<br><a href="mailto:CMake@cmake.org">
CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>