cURL / Mailing Lists / curl-library / Single Mail


[PATCH 0/2] CMake: Fix order-dependent header and library checks

From: Brad King <>
Date: Fri, 7 Nov 2014 09:14:14 -0500

Hi Folks,

The CMake build system for curl was regressed in 7.38 and
further in 7.39 and currently does not work on some OS X
machines and other UNIX systems due to failing to detect
some existing header files and libraries. Compilation
fails with errors like:

 lib/if2ip.c:159: error: storage size of 'req' isn't known

due to not detecting and including <net/if.h>.

Here is a patch series to fix it. See individual commit
messages for details. Basically they revert some recent
changes and add comments explaning why the original code
worked the way it did. Whatever issues caused those changes
will need to be resolved in another way.


Brad King (2):
  CMake: Restore order-dependent header checks
  CMake: Restore order-dependent library checks

 CMake/Macros.cmake | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

List admin:
Received on 2014-11-07