Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
CURL_STATIC_CRT no longer works with cmake 3.15 and above #5165
Building curl with -DCURL_STATIC_CRT=ON
Run "x64 Native Tools Command Prompt for VS 2019"
I see the following
(This is identical with the output when
I expected the following
Windows 10 1909
I am using Visual Studio 16.5.1, and the cmake that is supplied with VS (cmake version 3.16.19112601-MSVC_2)
Cmake CMP0091 ( https://cmake.org/cmake/help/git-stage/policy/CMP0091.html ) changes the way CMake on Windows handles the flags controlling the C runtime being used.
Prior to CMake 3.15 the
Note: the existing settings should be left in place, for versions of cmake prior to 3.15
I agree with you that it is a cmake issue - but I think this is mostly because they're trying to improve the vexing issue of handling the Microsoft compiler's setting of the relevant options controlling the C/C++ runtime library.
The existing code handling
P/R #5167 raised
The behaviour is controlled by cmake policy
If I understand the description of