From a6ce23094341eafabe6238d7950e20b98087e7eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Wed, 28 Nov 2018 10:09:51 -1000 Subject: [PATCH] (maint) Properly detect cURL on FreeBSD Add FreeBSD to the supported systems list so that -DUSE_CURL can be set and features depending on this can be used (e.g. ec2_metadata). --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d74c48e2ba..5fcc0d5871 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,7 +52,7 @@ SET(LEATHERMAN_COMPONENTS locale catch nowide logging util file_util dynamic_lib # We look for curl early, because whether or not we link to the leatherman curl library # is dependant on whether or not we find curl on the system. -if ((("${CMAKE_SYSTEM_NAME}" MATCHES "Linux|OpenBSD") OR WIN32) AND NOT WITHOUT_CURL) +if ((("${CMAKE_SYSTEM_NAME}" MATCHES "FreeBSD|Linux|OpenBSD") OR WIN32) AND NOT WITHOUT_CURL) find_package(CURL) if (CURL_FOUND) add_definitions(-DUSE_CURL)