1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

don't abort the build if no libcurl

This commit is contained in:
Sergei Golubchik
2020-06-02 14:39:04 +02:00
parent 53aa9c643b
commit 5a275e6483
2 changed files with 7 additions and 1 deletions

View File

@ -154,6 +154,13 @@ if (NOT SNAPPY_FOUND)
return() return()
endif() endif()
FIND_PACKAGE(CURL)
if (NOT CURL_FOUND)
MESSAGE_ONCE(CS_NO_CURL "libcurl development headers not found")
return()
endif()
FIND_PROGRAM(AWK_EXECUTABLE awk DOC "path to the awk executable") FIND_PROGRAM(AWK_EXECUTABLE awk DOC "path to the awk executable")
if(NOT AWK_EXECUTABLE) if(NOT AWK_EXECUTABLE)
MESSAGE_ONCE(CS_NO_AWK "awk not found!") MESSAGE_ONCE(CS_NO_AWK "awk not found!")

View File

@ -11,7 +11,6 @@ SET(S3_SOURCES ${S3API_DIR}/src/debug.c
ADD_LIBRARY(marias3 SHARED ${S3_SOURCES}) ADD_LIBRARY(marias3 SHARED ${S3_SOURCES})
FIND_PACKAGE(CURL REQUIRED)
TARGET_LINK_LIBRARIES(marias3 curl) TARGET_LINK_LIBRARIES(marias3 curl)
INCLUDE_DIRECTORIES(${S3API_DIR}) INCLUDE_DIRECTORIES(${S3API_DIR})