Skip to content

Commit

Permalink
[vtk] use interface target instead of alias for lz4 (#23352)
Browse files Browse the repository at this point in the history
* [vtk] use interface target instead of alias

* update version

Co-authored-by: Alexander Neumann <you@example.com>
  • Loading branch information
Neumann-A and Alexander Neumann authored Mar 3, 2022
1 parent ec7b21c commit b196dac
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ports/vtk/FindLZ4.patch
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ index 8c94e3bcd..ade3f9451 100644
- endif ()
-endif ()
+find_package(LZ4 CONFIG REQUIRED)
+set_target_properties(lz4::lz4 PROPERTIES IMPORTED_GLOBAL TRUE)
+if(NOT TARGET LZ4::LZ4)
+add_library(LZ4::LZ4 ALIAS lz4::lz4)
+ add_library(LZ4::LZ4 INTERFACE IMPORTED)
+ target_link_libraries(LZ4::LZ4 INTERFACE lz4::lz4)
+endif()
\ No newline at end of file
2 changes: 1 addition & 1 deletion ports/vtk/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vtk",
"version-semver": "9.0.3-pv5.9.1",
"port-version": 7,
"port-version": 8,
"description": "Software system for 3D computer graphics, image processing, and visualization",
"homepage": "https://github.com/Kitware/VTK",
"license": "BSD-3-Clause",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7274,7 +7274,7 @@
},
"vtk": {
"baseline": "9.0.3-pv5.9.1",
"port-version": 7
"port-version": 8
},
"vtk-dicom": {
"baseline": "0.8.12",
Expand Down
5 changes: 5 additions & 0 deletions versions/v-/vtk.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "585d1bca8e71d950c6d12ceb6ad720825ecbd704",
"version-semver": "9.0.3-pv5.9.1",
"port-version": 8
},
{
"git-tree": "4ba3d3d0db6e98e9a47d8c5c86790da3ef9af25b",
"version-semver": "9.0.3-pv5.9.1",
Expand Down

0 comments on commit b196dac

Please sign in to comment.