mirror of
https://github.com/BlackMATov/curly.hpp.git
synced 2025-12-14 20:11:29 +07:00
update curl to 7.78.0
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
# 3.8 version is required for `cxx_std_17`
|
# 3.11 version is required for `FetchContent`
|
||||||
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
|
cmake_minimum_required(VERSION 3.11 FATAL_ERROR)
|
||||||
|
|
||||||
if(NOT DEFINED PROJECT_NAME)
|
if(NOT DEFINED PROJECT_NAME)
|
||||||
set(BUILD_AS_STANDALONE ON)
|
set(BUILD_AS_STANDALONE ON)
|
||||||
@@ -76,6 +76,12 @@ target_include_directories(${PROJECT_NAME}
|
|||||||
target_compile_features(${PROJECT_NAME}
|
target_compile_features(${PROJECT_NAME}
|
||||||
PUBLIC cxx_std_17)
|
PUBLIC cxx_std_17)
|
||||||
|
|
||||||
|
target_compile_definitions(${PROJECT_NAME}
|
||||||
|
PRIVATE
|
||||||
|
$<$<CXX_COMPILER_ID:MSVC>:
|
||||||
|
NOMINMAX
|
||||||
|
WIN32_LEAN_AND_MEAN>)
|
||||||
|
|
||||||
target_compile_options(${PROJECT_NAME}
|
target_compile_options(${PROJECT_NAME}
|
||||||
PRIVATE
|
PRIVATE
|
||||||
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:
|
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:
|
||||||
@@ -123,7 +129,7 @@ if(USE_EMBEDDED_CURL)
|
|||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
embedded_curl
|
embedded_curl
|
||||||
GIT_REPOSITORY https://github.com/curl/curl
|
GIT_REPOSITORY https://github.com/curl/curl
|
||||||
GIT_TAG curl-7_74_0)
|
GIT_TAG curl-7_78_0)
|
||||||
|
|
||||||
FetchContent_GetProperties(embedded_curl)
|
FetchContent_GetProperties(embedded_curl)
|
||||||
if(NOT embedded_curl_POPULATED)
|
if(NOT embedded_curl_POPULATED)
|
||||||
|
|||||||
@@ -1,6 +1,3 @@
|
|||||||
# 3.11 version is required for `FetchContent`
|
|
||||||
cmake_minimum_required(VERSION 3.11 FATAL_ERROR)
|
|
||||||
|
|
||||||
project(curly.hpp.untests)
|
project(curly.hpp.untests)
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user