[CMake] check_include_file macro
Steven Van Ingelgem
steven at vaningelgem.be
Sat Mar 1 10:09:26 EST 2008
In fact what I want is "check_include_file( uuid/uuid.h HAS_UUID_H )".
Where this check is a "blocking check" (in other words, cmake will
stop processing the cmakelists.txt)... The next time it should
re-check the include file...
As you can see find_package is not needed in this case.
Greetings
On 01/03/2008, Andreas Schneider <mail at cynapses.org> wrote:
> Steven Van Ingelgem wrote:
> > Hi,
>
> >
>
> Hi,
>
> >
> > I'm testing with the "check_include_file" macro but I have an issue with it.
> > I need it to stop working if the include file is not found, and
> > re-check the next time it is ran...
> >
>
>
> normally check_include_file is to check for standard include files like
> stdint.h and add it to a config.h file.
>
>
> > But how can I achieve that? Because the behaviour I got is that it
> > runs but doesn't re-check anymore...
> >
>
>
> I think you want to write a find module which is used by 'find_package'.
>
> >
> > Thanks for any pointers
>
>
> -- andreas
>
>
> --
> http://www.cynapses.org/ - cybernetic synapses
>
>
>
>
More information about the CMake
mailing list