On Thursday 19 November 2009, Jan Kneschke wrote:
> Hi,
>
> I have a few projects that have to check for net/if.h. At least on Mac
> OS X the fails with
> CHECK_INCLUDE_FILES() even if the file exists as it needs some types
> that are imported through

You mean check_include_file(), right ?
check_include_files() (plural) supports multiple files.
The implementation if the macro does this:

    FOREACH(FILE ${INCLUDE})
      SET(CMAKE_CONFIGURABLE_FILE_CONTENT
        "${CMAKE_CONFIGURABLE_FILE_CONTENT}#include <${FILE}>\n")
    ENDFOREACH(FILE)

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

Reply via email to