[CMake] Using m4 as a additional preprocessor for C/C++

Prasad H. L. hlprasu at gmail.com
Fri Jun 5 12:40:07 EDT 2009


2009/6/5 Denis Scherbakov <denis_scherbakov at yahoo.com>:
>
>> Is it possible to set the preprocessing to all .m4 files
>> avoiding a
>> manual specification of list of files to processed?
>
> I don't know of such, but it does not mean that it does not exist.
>
> If your list of files changes all the time, you can use FILE(GLOB...)
> to find all *.m4 files to automate process.

I try this out.

>
> (Please also not that somebody submitted a hint that COMMAND m4 ARGS ... > ... may actually work,
> the trick is COMMAND and ARGS. But I did not try it.)

With that the redirection operator works well. But, it is somehow not able to
the find the input file itself. I think it is related to setting paths
right... I'll try this
out.

Thanks Denis and Robert...


More information about the CMake mailing list