Skip to content

Commit b21d8d7

Browse files
committed
Build curl from master
1 parent 37b6dfb commit b21d8d7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,14 +265,12 @@ if (DEFINED ENV{CURL_SOURCE_DIR})
265265
BUILD_IN_SOURCE 1
266266
)
267267
else()
268-
set(CURL_VERSION 8.14.1)
269-
message(STATUS "Building curl from downloaded source, version ${CURL_VERSION}")
270-
# The URL needs dots replaced with underscores for curl's release naming convention.
271-
string(REPLACE "." "_" CURL_VERSION_UNDERSCORE ${CURL_VERSION})
272-
set(CURL_URL https://github.com/curl/curl/releases/download/curl-${CURL_VERSION_UNDERSCORE}/curl-${CURL_VERSION}.tar.gz)
268+
message(STATUS "Building curl from git master")
269+
set(CURL_URL "https://github.com/curl/curl")
273270
ExternalProject_Add(
274271
curl_external
275-
URL ${CURL_URL}
272+
GIT_REPOSITORY ${CURL_URL}
273+
GIT_SHALLOW 1
276274
PREFIX ${CMAKE_BINARY_DIR}/curl
277275
CONFIGURE_COMMAND ${CURL_CONFIGURE_COMMAND}
278276
BUILD_COMMAND $(MAKE)

0 commit comments

Comments
 (0)