]> git.ipfire.org Git - thirdparty/curl.git/commit
cmake: drop `HAVE_LIBWINMM` and `HAVE_LIBWS2_32` feature checks
authorViktor Szakats <commit@vsz.me>
Mon, 7 Aug 2023 19:50:11 +0000 (19:50 +0000)
committerViktor Szakats <commit@vsz.me>
Tue, 8 Aug 2023 09:10:03 +0000 (09:10 +0000)
commit762740f4e5fce903f49e2aadaffc601580868bef
treec5ec5f7642e51dee1d0133f4836793d628fa33c7
parent22eb9893bc8fa8dea874b0cad64fdca835e19a16
cmake: drop `HAVE_LIBWINMM` and `HAVE_LIBWS2_32` feature checks

- `HAVE_LIBWINMM` was detected but unused. The `winmm` system library is
  also not used by curl, but it is by its optional dependency `librtmp`.
  Change the logic to always add `winmm` when `USE_LIBRTMP` is set. This
  library has been available since the early days of Windows.

- `HAVE_LIBWS2_32` detected `ws2_32` lib on Windows. This lib is present
  since Windows 95 OSR2 (AFAIR). Winsock1 already wasn't supported and
  other existing logic already assumed this lib being present, so delete
  the check and replace the detection variable with `WIN32` and always
  add `ws2_32` on Windows.

Closes #11612
CMake/OtherTests.cmake
CMakeLists.txt