msix-packaging
msix-packaging copied to clipboard
Fix static CRT compilation
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