Hi,
No, it doesn't work....file is ignored. I tried to change extension definition 
in CMakeCXXCompiler.cmake.in (CMake 2.6\share\cmake-2.6\Modules) but not better.

Here is my code :

ADD_CUSTOM_COMMAND(OUTPUT MyFile.cio
                                   COMMAND ${CMAKE_COMMAND} -E echo "#include 
<stdio.h>" > MyFile.cio) 
SET_SOURCE_FILES_PROPERTIES(MyFile.cio PROPERTIES LANGUAGE C)
ADD_LIBRARY(MyLib MyFile.cio)
SET_TARGET_PROPERTIES(MyLib PROPERTIES LINKER_LANGUAGE C)


Sebastien

> Message du 13/10/08 à 17h08
> De : "Mathieu Malaterre" 
> A : [EMAIL PROTECTED]
> Copie à : [email protected]
> Objet : Re: [CMake] Problem with CMAKE_C_SOURCE_FILE_EXTENSIONS
> 
> 
> Does this work:
> 
> SET_SOURCE_FILES_PROPERTIES(MyFile.myextension PROPERTIES LANGUAGE C)
> 
> 2008/10/13 [EMAIL PROTECTED] :
> > Hi,
> >
> > I would like to compile a generated file (for example MyFile.myextension)
> > with the C compiler. The "SET(CMAKE_C_SOURCE_FILE_EXTENSIONS myextension)"
> > doesn't seem to work : file is ignored !
> >
> > Any idea ?
> >
> > Thanks.
> >
> > Sebastien
> >
> >
> >
> > ________________________________
> > Écoutez gratuitement Ben Ricour sur Voila et découvrez d'autres titres en
> > affinité avec vos goûts musicaux !
> > _______________________________________________
> > CMake mailing list
> > [email protected]
> > http://www.cmake.org/mailman/listinfo/cmake
> >
> 
> 
> 
> -- 
> Mathieu
> 
> 

____________________________________________________

Écoutez gratuitement Ben Ricour sur Voila et découvrez d'autres titres en 
affinité avec vos goûts musicaux ! http://musiline.voila.fr/resume/4316
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to