On Friday 17 July 2009, Mark Lohry wrote: > 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 )
Did you also set CMAKE_REQUIRED_INCLUDES as stated in the docs ? include_directories() applies to the current project, but not to the tiny test project created internally for check_include_files(). Alex _______________________________________________ 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