Dear Lasse, On 24.02.20 23:12, Lasse Collin wrote:
Hello! I committed some CMake support. It should support a few platforms (not just Windows) for building liblzma but it's not tested. Silly bugs are very much possible. The CMakeLists.txt in the previous email had a bug in the defines: they lacked quotation marks for the strings. The questions in that email are still valid. In addition to testing with MSVC, it can now be tested on other platforms too. At least I would like to know if it works with MSVC to build static and shared liblzma, and does it name the shared liblzma file "liblzma.dll" as I hope it does.
Awesome! I've just tested the CMakeLists with the latest official release xz-5.2.4 and it works flawless so far. I had to remove two source files (src/liblzma/common/file_info.c and src/liblzma/common/index_decoder.h) and everything else seems to have worked out of the box. Whats more, I've seen that the previous cmake build was missing a large number of source files. I guess they are not mandatory but it feels good to have them included now :-) Thanks a lot again! All the best, Mario Emmenlauer