Skip to content

Commit 08c1b8f

Browse files
committed
cmake: simplify some HTTPS tests
1 parent 8f05d2d commit 08c1b8f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

tests/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ IF (MSVC_IDE)
5252
SET_SOURCE_FILES_PROPERTIES("precompiled.c" COMPILE_FLAGS "/Ycprecompiled.h")
5353
ENDIF ()
5454

55-
IF (WINHTTP OR OPENSSL_FOUND OR SECURITY_FOUND)
55+
IF (GIT_HTTPS)
5656
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)
5757
ELSE ()
5858
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)

tests/core/stream.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ void test_core_stream__register_tls(void)
3737
* or when openssl support is disabled (except on OSX
3838
* with Security framework).
3939
*/
40-
#if defined(GIT_WIN32) || \
41-
(!defined(GIT_SECURE_TRANSPORT) && !defined(GIT_OPENSSL))
40+
#if defined(GIT_WIN32) || !defined(GIT_HTTPS)
4241
cl_git_fail_with(-1, error);
4342
#else
4443
cl_git_pass(error);

0 commit comments

Comments
 (0)