[CMake] [Fwd: Re: [vtkusers] Re: Fwd: Re: Compiling VTK-5.0.2
with Cygwin make]
Brad King
brad.king at kitware.com
Fri Sep 22 16:20:37 EDT 2006
David Cole wrote:
> CMake bug then...?
>
>
> ------------------------------------------------------------------------
>
> Subject:
> Re: [vtkusers] Re: Fwd: Re: Compiling VTK-5.0.2 with Cygwin make
> From:
> Steve Robbins <smr at sumost.ca>
[snip]
> FIND_PATH(OPENGL_INCLUDE_DIR GL/gl.h
> /usr/include
> /usr/include/w32api
> /usr/X11R6/include
> )
>
> MESSAGE(STATUS "OPENGL_INCLUDE_DIR='${OPENGL_INCLUDE_DIR}'")
>
>
> And here is the output:
>
> -- FindOpenGL: WIN32 is defined...
> -- FindOpenGL: CYGWIN is defined...
> -- OPENGL_INCLUDE_DIR=''
> -- OPENGL_INCLUDE_DIR='/usr/X11R6/include'
>
>
> I don't get it. Is there a way to have CMake verbosely explain its
> decision process in the FIND_PATH() statement?
There are paths searched before the ones listed in the command. Try
taking all the paths out:
FIND_PATH(OPENGL_INCLUDE_DIR NAMES GL/gl.h)
to see if it is finding that path using a default search location.
-Brad
More information about the CMake
mailing list