See this post to this list from just a few days ago:

http://www.cmake.org/pipermail/cmake/2007-July/015224.html

The short answer is to do this for the .c file in your CMakeLists.txt file:

SET_SOURCE_FILES_PROPERTIES( ${C_SOURCE} PROPERTIES LANGUAGE CXX)


HTH,
David


On 7/28/07, Timur Ivanov <[EMAIL PROTECTED]> wrote:
>
> Hello!
>
> Is there any way to tell cmake that certain file with .c extension
> have to be compiled by c++ compiler ?
> _______________________________________________
> CMake mailing list
> [email protected]
> http://www.cmake.org/mailman/listinfo/cmake
>
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to