[CMake] Problem with CMAKE_C_SOURCE_FILE_EXTENSIONS
s.bedouet at voila.fr
s.bedouet at voila.fr
Tue Oct 14 03:23:30 EDT 2008
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 : s.bedouet at voila.fr
> Copie à : cmake at cmake.org
> 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 s.bedouet at voila.fr :
> > 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
> > CMake at cmake.org
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081014/a9e9693b/attachment.htm>
More information about the CMake
mailing list