mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
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.
This commit is contained in:
parent
8c2d197c94
commit
daea64d158
1 changed files with 1 additions and 1 deletions
|
@ -1081,7 +1081,7 @@ endif()
|
||||||
# xz
|
# xz
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
if(NOT MSVC)
|
if(NOT MSVC OR MSVC_VERSION GREATER_EQUAL 1900)
|
||||||
add_executable(xz
|
add_executable(xz
|
||||||
src/common/mythread.h
|
src/common/mythread.h
|
||||||
src/common/sysdefs.h
|
src/common/sysdefs.h
|
||||||
|
|
Loading…
Reference in a new issue