I have this snipped in my cmakelists:<br><br>IF( EXISTS &quot;/someabsolutedirectory/unixem-1.8.2/include/glob2.h&quot; )<br>    message( &quot;/someabsolutedirectory/unixem-1.8.2/include/glob2.h exists&quot; )<br>ENDIF( EXISTS &quot;/someabsolutedirectory/unixem-1.8.2/include/glob2.h&quot; )<br>
<br>INCLUDE_DIRECTORIES( &quot;/someabsolutedirectory/unixem-1.8.2/include&quot; )<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( &quot;${UNIXEMHEADERS}&quot; )<br><br><br><br>Any idea why this very simple example would fail?<br>