msix-packaging icon indicating copy to clipboard operation
msix-packaging copied to clipboard

Fix static CRT compilation

Open Alovchin91 opened this issue 1 year ago • 0 comments

Currently, static CRT compilation doesn't work, because /NODEFAULTLIB:MSVCRT(D) simply leaves a number of unresolved external references behind.

#628 has upgraded CMake to version 3.29 which enables the use of CMAKE_MSVC_RUNTIME_LIBRARY. That makes static CRT use much easier, so we can take advantage of this.

I've also downgraded CMake slightly to version 3.28 so that it can be compiled with the version shipped with Visual C++ Build Tools 17.10 LTS.

/cc @msftrubengu

Alovchin91 avatar Aug 21 '24 08:08 Alovchin91