]> git.ipfire.org Git - thirdparty/curl.git/commit
cmake: allow `CURL_STATIC_CRT` with UCRT VS2015+ builds
authorViktor Szakats <commit@vsz.me>
Fri, 28 Feb 2025 12:17:39 +0000 (13:17 +0100)
committerViktor Szakats <commit@vsz.me>
Tue, 4 Mar 2025 00:01:09 +0000 (01:01 +0100)
commit61407464bf049ec013879e236e7f0bfae343ae16
tree74427177d927ecdff16aad81f2d57e05d9055d31
parent9a0767017c64555f3c2797fdaabfbbb7b6eaaca1
cmake: allow `CURL_STATIC_CRT` with UCRT VS2015+ builds

After this patch, we're back to 8.12.1, but disallowing
`CURL_STATIC_CRT=ON` with shared curl exe built with VS2013 or older.
Because those may crash. A stable reprducer is with `ENABLE_DEBUG=ON`
and calling `curl.exe -V`.

You can pass the necessary CMake and MSVC linker options manually,
to get around this condition.

Shared build with static UCRT may be crashing too, depending on
conditions. Consult the documentation about limitations of static CRT:
https://learn.microsoft.com/cpp/c-runtime-library/crt-library-features

Follow-up to 049352dd80e1ab73945c49a3bac2e4a08db32f98 #16516
Follow-up to edfa537100d6b5d2ac1b829c66757880afe59407 #16456
Ref: #16394
Closes #16522
.github/scripts/spellcheck.words
CMakeLists.txt
docs/INSTALL-CMAKE.md