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?
_______________________________________________
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