From e09e7825369ec8217456065d31dbbbb992b7f1bb Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Wed, 31 May 2023 20:15:08 -0400 Subject: meta: Use system libraries to compile Also: try to make pqxx not use local socket for connections (unsuccessful) Change-Id: I351fe1a405a7c204e1276a90da75ab3d32f51bdc --- cmake/Findcurl.cmake | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 cmake/Findcurl.cmake (limited to 'cmake/Findcurl.cmake') diff --git a/cmake/Findcurl.cmake b/cmake/Findcurl.cmake new file mode 100644 index 0000000..3ad12ea --- /dev/null +++ b/cmake/Findcurl.cmake @@ -0,0 +1,14 @@ +include(FindPackageHandleStandardArgs) + +find_library(CURL_LIBRARY NAMES curl) + +find_package_handle_standard_args(curl REQUIRED_VARS CURL_LIBRARY) + +if (CURL_FOUND) + mark_as_advanced(CURL_LIBRARY) +endif() + +if(CURL_FOUND AND NOT TARGET curl::curl) + add_library(CURL::libcurl IMPORTED UNKNOWN) + set_property(TARGET CURL::libcurl PROPERTY IMPORTED_LOCATION ${CURL_LIBRARY}) +endif() \ No newline at end of file -- cgit v1.2.3