[CMake] include_directories - newbie

Mark Lohry mlohry at gmail.com
Fri Jul 17 14:11:03 EDT 2009


I have this snipped in my cmakelists:

IF( EXISTS "/someabsolutedirectory/unixem-1.8.2/include/glob2.h" )
    message( "/someabsolutedirectory/unixem-1.8.2/include/glob2.h exists" )
ENDIF( EXISTS "/someabsolutedirectory/unixem-1.8.2/include/glob2.h" )

INCLUDE_DIRECTORIES( "/someabsolutedirectory/unixem-1.8.2/include" )
INCLUDE(CheckIncludeFiles)
CHECK_INCLUDE_FILES( glob2.h HAVE_GLOB2_H )



cmake always outputs the message confirming that the header exists, but
always fails on the check_include_files test CHECK_INCLUDE_FILES( glob2.h
HAVE_GLOB2_H )

 This also fails:


FIND_PATH( UNIXEMHEADERS glob2.h /someabsolutedirectory/unixem-1.8.2/include
)
MESSAGE( ${UNIXEMHEADERS} )
INCLUDE_DIRECTORIES( "${UNIXEMHEADERS}" )



Any idea why this very simple example would fail?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090717/ccbb241a/attachment.htm>


More information about the CMake mailing list