]> granicus.if.org Git - curl/commit
CMake: Restore order-dependent header checks
authorBrad King <brad.king@kitware.com>
Mon, 10 Nov 2014 18:56:09 +0000 (19:56 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 13 Nov 2014 22:42:35 +0000 (23:42 +0100)
commit1ae06e002da6535593e988e1148ce001bb2abc2d
treeb222884dffffb86342874e921eb31ff4c2388252
parent8bdecd36174f243fa9c9e05e6ed501f61ca2984f
CMake: Restore order-dependent header checks

Revert commit 1269df2e3b (Cmake: Don't check for all headers each
time, 2014-08-15) and add a comment explaining the purpose of the
original code.

The check_include_file_concat macro is intended to be called multiple
times on a sequence of possibly dependent headers.  Later headers
may depend on earlier headers to provide declarations.  They cannot
be safely included independently on some platforms.

For example, many POSIX APIs document including sys/types.h before some
other headers.  Also on some OS X versions sys/socket.h must be included
before net/if.h or the check for the latter will fail.

Signed-off-by: Brad King <brad.king@kitware.com>
CMake/Macros.cmake