CMake: Allow building xz with Visual Studio 2015 and later.
commitdaea64d158a7151ca6c255a0e4554c6d521cd589
authorLasse Collin <lasse.collin@tukaani.org>
Tue, 12 Sep 2023 20:43:49 +0000 (12 23:43 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Fri, 22 Sep 2023 17:06:27 +0000 (22 20:06 +0300)
treed9bef3b268b1508bfb261edf5d421c29ccf18995
parent8c2d197c940d246849b2ec48109bb22e54036927
CMake: Allow building xz with Visual Studio 2015 and later.

Building the command line tools xz and xzdec with the combination
of CMake + Visual Studio 2015/2017/2019/2022 works now.

VS2013 update 2 should still be able to build liblzma.
VS2013 cannot build the xz command line tool because xz
needs snprintf() that roughly conforms to C99.
VS2013 is old and no extra code will be added to support it.

Thanks to Kelvin Lee and Jia Tan for testing.
CMakeLists.txt