-
-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes build. Added cURL example with combined build support.
- Loading branch information
Alexander Widerberg
committed
Aug 14, 2019
1 parent
40bdb4c
commit 29668db
Showing
5 changed files
with
72 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
|
||
project(external-curl) | ||
include(ExternalProject) | ||
|
||
set(CURL_VERSION 7.65.3) | ||
string(REPLACE "." "_" CURL_VERSION_USCORE ${CURL_VERSION}) | ||
|
||
list(APPEND CMAKE_ARGS | ||
"-DCMAKE_TOOLCHAIN_FILE:PATH=${CMAKE_TOOLCHAIN_FILE}" | ||
"-DBUILD_SHARED_LIBS=OFF" | ||
"-DCMAKE_USE_OPENSSL=OFF" | ||
"-DBUILD_CURL_EXE=OFF" | ||
"-DBUILD_TESTING=FALSE" | ||
"-DHAVE_LIBIDN2=FALSE" | ||
"-DCURL_CA_PATH=none" | ||
"-DCURL_DISABLE_FTP=ON" | ||
"-DCURL_DISABLE_LDAP=ON" | ||
"-DCURL_DISABLE_LDAPS=ON" | ||
"-DCURL_DISABLE_TELNET=ON" | ||
"-DCURL_DISABLE_DICT=ON" | ||
"-DCURL_DISABLE_FILE=ON" | ||
"-DCURL_DISABLE_TFTP=ON" | ||
"-DCURL_DISABLE_RTSP=ON" | ||
"-DCURL_DISABLE_POP3=ON" | ||
"-DCURL_DISABLE_IMAP=ON" | ||
"-DCURL_DISABLE_SMTP=ON" | ||
"-DCURL_DISABLE_GOPHER=ON" | ||
) | ||
|
||
if(IOS) | ||
list(APPEND CMAKE_ARGS | ||
"-DPLATFORM=${PLATFORM}" | ||
) | ||
endif() | ||
|
||
message(STATUS "Preparing external project \"curl\" with args:") | ||
foreach(CMAKE_ARG ${CMAKE_ARGS}) | ||
message(STATUS "-- ${CMAKE_ARG}") | ||
endforeach() | ||
|
||
ExternalProject_add( | ||
curl | ||
URL https://github.com/curl/curl/releases/download/curl-${CURL_VERSION_USCORE}/curl-${CURL_VERSION}.tar.gz | ||
PREFIX curl | ||
CMAKE_ARGS "${CMAKE_ARGS}" | ||
) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters