[CMake] CHECK_INCLUDE_FILES
Nico Schlömer
nico.schloemer at gmail.com
Thu Feb 28 08:24:53 EST 2013
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