ports/sysutils/facter/files/patch-CMakeLists.txt
Romain Tartière b1828130b0 Integrate a patch to fix cURL detection
The patch has been submitted upstream, but some users depend on it now, so ship
it:
https://github.com/puppetlabs/facter/pull/1762
2018-11-29 01:58:49 +00:00

11 lines
543 B
Text

--- CMakeLists.txt.orig 2018-10-23 22:00:38 UTC
+++ CMakeLists.txt
@@ -52,7 +52,7 @@ SET(LEATHERMAN_COMPONENTS locale catch n
# 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)