[CMake] Problem with CMAKE_C_SOURCE_FILE_EXTENSIONS

Alexander Neundorf a.neundorf-work at gmx.net
Mon Oct 13 18:45:06 EDT 2008


On Monday 13 October 2008, s.bedouet at voila.fr wrote:
> 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 ?

Without checking, I think this variable is only evaluated once quite early in 
the beginning, so changing it later doesn't have an effect.
Check the sources to see where it's used.

Alex


More information about the CMake mailing list