I have this snipped in my cmakelists:<br><br>IF( EXISTS "/someabsolutedirectory/unixem-1.8.2/include/glob2.h" )<br> message( "/someabsolutedirectory/unixem-1.8.2/include/glob2.h exists" )<br>ENDIF( EXISTS "/someabsolutedirectory/unixem-1.8.2/include/glob2.h" )<br>
<br>INCLUDE_DIRECTORIES( "/someabsolutedirectory/unixem-1.8.2/include" )<br>
INCLUDE(CheckIncludeFiles)<br>CHECK_INCLUDE_FILES( glob2.h HAVE_GLOB2_H )<br><br><br><br>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 )<br>
<br> This also fails:<br><br><br>FIND_PATH( UNIXEMHEADERS glob2.h /someabsolutedirectory/unixem-1.8.2/include )<br>MESSAGE( ${UNIXEMHEADERS} )<br>INCLUDE_DIRECTORIES( "${UNIXEMHEADERS}" )<br><br><br><br>Any idea why this very simple example would fail?<br>