File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -34,18 +34,11 @@ _VER="$1"
34
34
if [ " ${_OS} " = ' win' ]; then
35
35
# Silence useless libssh2 warning about missing runtime DLL
36
36
touch " ${_TOP} /${_OPENSSL} /${_PP} /crypto.dll"
37
- if [ " ${LIBSSH2_VER_} " = ' 1.11.0' ]; then
38
- touch " ${_TOP} /${_OPENSSL} /${_PP} /ssl.dll"
39
- fi
40
37
fi
41
38
elif [ " ${_OS} " = ' win' ]; then
42
39
options+=' -DCRYPTO_BACKEND=WinCNG'
43
40
fi
44
41
45
- if [ " ${LIBSSH2_VER_} " != ' 1.11.0' ]; then
46
- options+=' -DLIBSSH2_NO_DEPRECATED=ON'
47
- fi
48
-
49
42
if [[ " ${_CONFIG} " != * ' nounity' * ]]; then
50
43
options+=' -DCMAKE_UNITY_BUILD=ON'
51
44
fi
@@ -54,15 +47,12 @@ _VER="$1"
54
47
options+=' -DHIDE_SYMBOLS=OFF'
55
48
fi
56
49
57
- if [ " ${LIBSSH2_VER_} " = ' 1.11.0' ]; then
58
- LIBSSH2_CPPFLAGS+=' -DLIBSSH2_NO_DSA'
59
- fi
60
-
61
50
if [ " ${CW_DEV_INCREMENTAL:- } " != ' 1' ] || [ ! -d " ${_BLDDIR} " ]; then
62
51
# shellcheck disable=SC2086
63
52
cmake -B " ${_BLDDIR} " ${_CMAKE_GLOBAL} ${options} \
64
53
' -DBUILD_SHARED_LIBS=OFF' \
65
54
' -DBUILD_EXAMPLES=OFF' \
55
+ ' -DLIBSSH2_NO_DEPRECATED=ON' \
66
56
' -DBUILD_TESTING=OFF' \
67
57
' -DENABLE_DEBUG_LOGGING=OFF' \
68
58
" -DCMAKE_C_FLAGS=${_CFLAGS_GLOBAL_CMAKE} ${_CFLAGS_GLOBAL} ${_CPPFLAGS_GLOBAL} ${LIBSSH2_CPPFLAGS} ${_LDFLAGS_GLOBAL} ${LIBS} " # --debug-trycompile
You can’t perform that action at this time.
0 commit comments