[CMake] Check header file woos

Oliver python152 at gmail.com
Tue Feb 18 16:10:37 EST 2014


All,

I am trying to use CheckIncludeFiles for header file check. I know the file
I want to check is located at /usr/include/lustre, so I supplied the
following:

include(CheckIncludeFiles)

check_include_files("lustre/lustre_user.h" HAVE_LUSTRE_USER_H)

And it report can't find. Then I tried to be explicit about it

set(CMAKE_REQUIRED_INCLUDES /usr/include/lustre)

Still no avail. If I check any other header file in that directory, say
"sys/io.h", it will work as expected. I am puzzled ... anything I missed?

Thanks



-- 
Oliver
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20140218/89983e0f/attachment.html>


More information about the CMake mailing list