[vtk] Fix lzma patch (#23444)

* Use interface library for LZMA::LZMA

* Update versions

* [vtk] bump port version

* [vtk] Update version files

Co-authored-by: Victor Romero <viromer@microsoft.com>
This commit is contained in:
Kai Pastor 2022-03-15 20:46:27 +01:00 committed by GitHub
parent 70d3ac3a17
commit 18cff4b7ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 4 deletions

View File

@ -2,12 +2,13 @@ diff --git a/CMake/FindLZMA.cmake b/CMake/FindLZMA.cmake
index 0c8c794..796558c 100644
--- a/CMake/FindLZMA.cmake
+++ b/CMake/FindLZMA.cmake
@@ -1,3 +1,10 @@
@@ -1,3 +1,11 @@
+find_package(LibLZMA)
+set(LZMA_INCLUDE_DIR "${LIBLZMA_INCLUDE_DIR}" CACHE INTERNAL "")
+set(LZMA_LIBRARY "${LIBLZMA_LIBRARIES}" CACHE INTERNAL "")
+if(NOT TARGET LZMA::LZMA)
+ add_library(LZMA::LZMA ALIAS LibLZMA::LibLZMA)
+ add_library(LZMA::LZMA INTERFACE IMPORTED)
+ target_link_libraries(LZMA::LZMA INTERFACE LibLZMA::LibLZMA)
+endif()
+
find_path(LZMA_INCLUDE_DIR

View File

@ -1,7 +1,7 @@
{
"name": "vtk",
"version-semver": "9.0.3-pv5.9.1",
"port-version": 9,
"port-version": 10,
"description": "Software system for 3D computer graphics, image processing, and visualization",
"homepage": "https://github.com/Kitware/VTK",
"license": "BSD-3-Clause",

View File

@ -7314,7 +7314,7 @@
},
"vtk": {
"baseline": "9.0.3-pv5.9.1",
"port-version": 9
"port-version": 10
},
"vtk-dicom": {
"baseline": "0.8.12",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "6a7eea485be980aa5c9fae1e0a75084f98e5dc27",
"version-semver": "9.0.3-pv5.9.1",
"port-version": 10
},
{
"git-tree": "3fa106f1a3c80a3ad15d8db406067c5253decc8e",
"version-semver": "9.0.3-pv5.9.1",