[CMake] check_include_file macro

Steven Van Ingelgem steven at vaningelgem.be
Sat Mar 1 11:55:07 EST 2008


Thanks Philip :) I noticed that one too, but isn't there a way to do
it from within CMakeLists?

On 01/03/2008, Philip Lowman <philip at yhbt.com> wrote:
> On Sat, Mar 1, 2008 at 10:09 AM, Steven Van Ingelgem <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.
>
> --
> Philip Lowman


More information about the CMake mailing list