Skip to content

Commit 1604be0

Browse files
authored
Merge pull request libgit2#6120 from libgit2/ethomson/cmake_test
cmake: re-enable WinHTTP
2 parents 7a15213 + 1b8d14a commit 1604be0

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ include(DefaultCFlags)
111111
add_subdirectory(src)
112112

113113
if(BUILD_TESTS)
114+
enable_testing()
114115
add_subdirectory(tests)
115116
endif()
116117

cmake/SelectWinHTTP.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if(WIN32 AND WINHTTP)
1+
if(WIN32 AND USE_WINHTTP)
22
set(GIT_WINHTTP 1)
33

44
# Since MinGW does not come with headers or an import library for winhttp,

tests/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ function(ADD_CLAR_TEST name)
6868
endif()
6969
endfunction(ADD_CLAR_TEST)
7070

71-
enable_testing()
72-
7371
add_clar_test(offline -v -xonline)
7472
add_clar_test(invasive -v -score::ftruncate -sfilter::stream::bigfile -sodb::largefiles -siterator::workdir::filesystem_gunk -srepo::init -srepo::init::at_filesystem_root)
7573
add_clar_test(online -v -sonline -xonline::customcert)

0 commit comments

Comments
 (0)