[CMake] check_include_file macro
Steven Van Ingelgem
steven at vaningelgem.be
Sat Mar 1 12:02:26 EST 2008
The use case here is more like:
- run CMake:
check_include_file(uuid/uuid.h HAS_UUID_H)
if(not HAS_UUID_H) --> Fatal error + help how to resolve it.
- resolve the problem
- re-run CMake.
Greetz
On 01/03/2008, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> Philip Lowman wrote:
> > On Sat, Mar 1, 2008 at 10:09 AM, Steven Van Ingelgem
>
> > <steven at vaningelgem.be <mailto:steven at vaningelgem.be>> wrote:
> >
> > 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...
> >
> >
> > I don't know if there is a way to do this in CMake code but one thing
> > you can do is open up CMakeCache.txt in your build tree and manually
> > delete the line that says:
> > HAS_UUID_H:INTERNAL=
> > This will force the rechecking for the header file.
> >
>
>
> What is the use case here? Is this file appearing and disappearing and
> moving around a lot on this machine?
>
>
> -Bill
>
More information about the CMake
mailing list