[CMake] check_include_file macro

Bill Hoffman bill.hoffman at kitware.com
Sat Mar 1 11:59:18 EST 2008


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