Only run -ionline tests IF (WINHTTP OR OPENSSL_FOUND)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c63107b..1948fc8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -493,7 +493,11 @@ IF (BUILD_CLAR)
ENDIF ()
ENABLE_TESTING()
- ADD_TEST(libgit2_clar libgit2_clar -ionline)
+ IF (WINHTTP OR OPENSSL_FOUND)
+ ADD_TEST(libgit2_clar libgit2_clar -ionline)
+ ELSE ()
+ ADD_TEST(libgit2_clar libgit2_clar -v)
+ ENDIF ()
ENDIF ()
IF (TAGS)