summaryrefslogtreecommitdiff
path: root/storage/maria
diff options
context:
space:
mode:
authorAndrew Hutchings <andrew@mariadb.org>2022-10-24 14:40:29 +0100
committerGitHub <noreply@github.com>2022-10-24 14:40:29 +0100
commitce2825a86702fcfa89974281c6e7ef6b9f964993 (patch)
tree9274f20246f090bea47eebf40b1312195a21f44e /storage/maria
parentdca4fc24a2abde0fec5b1e5b7907944ca8d5f1cf (diff)
downloadmariadb-git-ce2825a86702fcfa89974281c6e7ef6b9f964993.tar.gz
Fix Aria S3 building in FreeBSD (#2242)
FreeBSD 13 has libcurl in /usr/local/lib so linking failed just trying to link curl by name. CMake finds curl's true place so let's use that.
Diffstat (limited to 'storage/maria')
-rw-r--r--storage/maria/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/maria/CMakeLists.txt b/storage/maria/CMakeLists.txt
index 13d8035bdc8..f55d78f0162 100644
--- a/storage/maria/CMakeLists.txt
+++ b/storage/maria/CMakeLists.txt
@@ -132,7 +132,7 @@ SET(CPACK_RPM_s3-engine_PACKAGE_DESCRIPTION "The S3 storage engine allows one to
IF(TARGET s3)
MYSQL_ADD_EXECUTABLE(aria_s3_copy aria_s3_copy.cc ${S3_SOURCES} COMPONENT s3-engine)
- TARGET_LINK_LIBRARIES(aria_s3_copy aria myisam mysys mysys_ssl curl z)
+ TARGET_LINK_LIBRARIES(aria_s3_copy aria myisam mysys mysys_ssl ${CURL_LIBRARIES} ${ZLIB_LIBRARY})
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/libmarias3)
ADD_DEFINITIONS(-DWITH_S3_STORAGE_ENGINE)
ENDIF()