cURL / Mailing Lists / curl-library / Single Mail

curl-library

[PATCH 0/4] cmake cleanups and -Werror fixes

From: Peter Wu <peter_at_lekensteyn.nl>
Date: Fri, 31 Oct 2014 12:32:37 +0100

Hi there,

Another round of cmake build fixes. These touch parts that were included with
the first commit that introduce cmake. The _BSD_SOURCE and struct
sockaddr_storage patches are such patches.

The CurlTests.c and related OtherTests.cmake files are cleaned up a lot,
initially to stop -Werror,-Wunused failures, but rather than monkey patching
around, I decided to reduce duplication in CurlTests.c (to ease maintenance) and
get rid of the custom CurlCheckCSourceCompiles with related variable hackery
and use the standard CheckCSourceCompiles module instead.

The diffstat looks quite nice for each patch :-)

These patches are also available here:
https://github.com/Lekensteyn/curl/compare/master...fix-cmake

Kind regards,
Peter

Peter Wu (4):
  cmake: drop _BSD_SOURCE macro usage
  cmake: fix gethostby{addr,name}_r in CurlTests
  cmake: clean OtherTests, fixing -Werror
  cmake: fix struct sockaddr_storage check

 CMake/CurlCheckCSourceCompiles.cmake | 71 --------
 CMake/CurlCheckCSourceRuns.cmake | 83 ---------
 CMake/CurlTests.c | 316 ++++++++---------------------------
 CMake/OtherTests.cmake | 204 ++++++++++------------
 CMake/Platforms/WindowsCache.cmake | 1 -
 CMakeLists.txt | 3 -
 lib/CMakeLists.txt | 19 ---
 7 files changed, 160 insertions(+), 537 deletions(-)
 delete mode 100644 CMake/CurlCheckCSourceCompiles.cmake
 delete mode 100644 CMake/CurlCheckCSourceRuns.cmake

-- 
2.1.2
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2014-10-31