Added win static build for curl
parent
ea4588f442
commit
b17e3b7be3
|
@ -32,6 +32,10 @@ args+=($build_testing)
|
||||||
args+=($build_type)
|
args+=($build_type)
|
||||||
args+=($custom_arch_var)
|
args+=($custom_arch_var)
|
||||||
|
|
||||||
|
if [ ! -z "$EXTRA_CMAKE_ENV" ]; then
|
||||||
|
args+=("-DCURL_STATIC_CRT=ON")
|
||||||
|
fi
|
||||||
|
|
||||||
# EXTRA_CMAKE_ENV is set by setup_clang_env.sh to build for windows.
|
# EXTRA_CMAKE_ENV is set by setup_clang_env.sh to build for windows.
|
||||||
# You must run setup_clang_env.sh before calling this script if you build for windows.
|
# You must run setup_clang_env.sh before calling this script if you build for windows.
|
||||||
|
|
||||||
|
|
|
@ -38,9 +38,6 @@ else()
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "Arch unknown")
|
message(FATAL_ERROR "Arch unknown")
|
||||||
endif()
|
endif()
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fvisibility=hidden -fPIC")
|
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden -fPIC")
|
|
||||||
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
|
|
Loading…
Reference in New Issue