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 <[email protected]> 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 -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
