mirror of
https://github.com/apache/impala.git
synced 2025-12-19 18:12:08 -05:00
IMPALA-10933: Impala build finds system libcurl instead of toolchain version
This patch modifies FindCurl.cmake to ignore the system version of libcurl. Without this patch the build might find a wrong version of libcurl which causes errors during link time. Change-Id: I3c2d315e9bc06b9b926a492fa8d3729baddc2c82 Reviewed-on: http://gerrit.cloudera.org:8080/17876 Reviewed-by: Wenzhe Zhou <wzhou@cloudera.com> Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
This commit is contained in:
committed by
Impala Public Jenkins
parent
444fedbfda
commit
b45cd1bf02
@@ -34,8 +34,17 @@ find_path(CURL_INCLUDE_DIR NAMES curl/curl.h PATHS
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
|
||||
find_library(CURL_STATIC_LIB NAMES libcurl.a PATHS ${CURL_SEARCH_LIB_PATH})
|
||||
find_library(CURL_SHARED_LIB NAMES libcurl.so PATHS ${CURL_SEARCH_LIB_PATH})
|
||||
find_library(CURL_STATIC_LIB NAMES libcurl.a PATHS
|
||||
${CURL_SEARCH_LIB_PATH}
|
||||
# make sure we don't accidentally pick up a different version
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
|
||||
find_library(CURL_SHARED_LIB NAMES libcurl.so PATHS
|
||||
${CURL_SEARCH_LIB_PATH}
|
||||
# make sure we don't accidentally pick up a different version
|
||||
NO_DEFAULT_PATH
|
||||
)
|
||||
|
||||
if (NOT CURL_INCLUDE_DIR OR NOT CURL_STATIC_LIB)
|
||||
message(FATAL_ERROR "Curl includes and libraries NOT found. "
|
||||
|
||||
Reference in New Issue
Block a user