[CMake] CHECK_INCLUDE_FILES

Nico Schlömer nico.schloemer at gmail.com
Thu Feb 28 08:45:57 EST 2013


Never mind: The above code does exactly what it's advertised to do.
The mistake I'm making lies elsewhere...

Sorry for the noise!

--Nico

On Thu, Feb 28, 2013 at 2:24 PM, Nico Schlömer <nico.schloemer at gmail.com> wrote:
> Hi,
>
> I'd like to find out whether the file /usr/include/vtk-5.8/vtkMPI.h is
> present on the system. I found CHECK_INCLUDE_FILES, and tried to use
> it like
>
> ================ *snip* ================
> cmake_minimum_required(VERSION 2.8)
> INCLUDE(CheckIncludeFiles)
>
> SET(CMAKE_REQUIRED_INCLUDES /usr/include/vtk-5.8)
> CHECK_INCLUDE_FILES(vtkMPI.h TEST)
>
> MESSAGE("<<${TEST}>>")
> ================ *snap* ================
>
> However, this doesn't seem to work return TRUE even if the file is present.
> Any idea what I'm doing wrong?
>
> --Nico


More information about the CMake mailing list