[CMake] Include header files at run time through cmake

Maik Beckmann beckmann.maik at googlemail.com
Thu Jan 29 01:47:03 EST 2009


2009/1/29 ankit jain <ankitguddu at gmail.com>:
> hi all,
> i have a c file in a folder which contain the line #include "%h" which says
> compile the file with -I option with gcc to tell where %h is located.
> but in cmake as i already add the header files by defining the path through
> a variable and add it through include_directories command. it still give
> error on compiling that %h: no such file or directory found.
>
> I am not able to understand how to remove it through cmake.

Please code an minimal example and show us the gcc command line
which works.

Best,
 -- Maik


More information about the CMake mailing list