mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
cmake: simplify some HTTPS tests
This commit is contained in:
@@ -52,7 +52,7 @@ IF (MSVC_IDE)
|
||||
SET_SOURCE_FILES_PROPERTIES("precompiled.c" COMPILE_FLAGS "/Ycprecompiled.h")
|
||||
ENDIF ()
|
||||
|
||||
IF (WINHTTP OR OPENSSL_FOUND OR SECURITY_FOUND)
|
||||
IF (GIT_HTTPS)
|
||||
ADD_TEST(libgit2_clar "${libgit2_BINARY_DIR}/libgit2_clar" -ionline -xclone::local::git_style_unc_paths -xclone::local::standard_unc_paths_are_written_git_style)
|
||||
ELSE ()
|
||||
ADD_TEST(libgit2_clar "${libgit2_BINARY_DIR}/libgit2_clar" -v -xclone::local::git_style_unc_paths -xclone::local::standard_unc_paths_are_written_git_style)
|
||||
|
||||
@@ -37,8 +37,7 @@ void test_core_stream__register_tls(void)
|
||||
* or when openssl support is disabled (except on OSX
|
||||
* with Security framework).
|
||||
*/
|
||||
#if defined(GIT_WIN32) || \
|
||||
(!defined(GIT_SECURE_TRANSPORT) && !defined(GIT_OPENSSL))
|
||||
#if defined(GIT_WIN32) || !defined(GIT_HTTPS)
|
||||
cl_git_fail_with(-1, error);
|
||||
#else
|
||||
cl_git_pass(error);
|
||||
|
||||
Reference in New Issue
Block a user