Re: [CMake] сompiling .c file by c++ compiler

David Cole david.cole at kitware.com
Sat Jul 28 10:02:40 EDT 2007


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 <timur.ivanov at gmail.com> 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
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20070728/e4d9dfab/attachment.html


More information about the CMake mailing list