vcpkg/ports/liblzma/fix_config_include.patch
Alexander Neumann eb895b95aa
[liblzma] use upstream CMakeLists.txt + Add pkgconfig. (#14615)
* [liblzma] use upstream CMakeLists.txt + Add pkgconfig.

* fixing regressions

* add debug suffix. fix pkgconfig

* fix cmake path

* remove empty lines

* fix wrapper

* more fixes

* fix findLibLZMA

* fix patch for static builds
2020-11-20 12:23:19 -08:00

13 lines
510 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 34c6aca00..7b3708ab2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -401,6 +401,7 @@ if(WIN32)
if(BUILD_SHARED_LIBS)
# Add the Windows resource file for liblzma.dll.
target_sources(liblzma PRIVATE src/liblzma/liblzma_w32res.rc)
+ target_include_directories(liblzma PRIVATE windows/vs2019)
# Export the public API symbols with __declspec(dllexport).
target_compile_definitions(liblzma PRIVATE DLL_EXPORT)