Bug #96954 Visual Studio 2019 requires cmake 3.15
Submitted: 20 Sep 2019 14:17 Modified: 9 Oct 2019 15:29
Reporter: Tor Didriksen Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.19 OS:Any
Assigned to: CPU Architecture:Any

[20 Sep 2019 14:17] Tor Didriksen
Description:
There is a bug in msbuild for Visual Studio 2019. Custom command dependencies are not handled correctly, and targets are re-built every time.
Cmake 3.15 has a workaround, so add a minimal version check.
VS 2019 comes with a bundled cmake 3.14. If this is used, then ignore the version check.

How to repeat:
Build with VS2019 and cmake 3.14
cmake --build . --config debug --target mysqld
....
cmake --build . --config debug --target mysqld
<everything is built again>

Suggested fix:
Add version check.
[9 Oct 2019 15:29] Paul DuBois
Posted by developer:
 
Fixed in 8.0.19.

On Windows, the minimum version of CMake for builds from the command
line is now 3.15.