mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
[vtk] FindPEGTL fix (#37561)
This commit is contained in:
parent
77fc42259f
commit
06e8ed3bfb
@ -58,7 +58,7 @@ diff --git a/CMake/FindPEGTL.cmake b/CMake/FindPEGTL.cmake
|
||||
index 73eee02f7..22d8bc159 100644
|
||||
--- a/CMake/FindPEGTL.cmake
|
||||
+++ b/CMake/FindPEGTL.cmake
|
||||
@@ -19,31 +19,43 @@
|
||||
@@ -19,31 +19,46 @@
|
||||
# Copyright (c) 2009 Benoit Jacob <jacob.benoit.1@gmail.com>
|
||||
# Redistribution and use is allowed according to the terms of the 2-clause BSD license.
|
||||
|
||||
@ -71,7 +71,10 @@ index 73eee02f7..22d8bc159 100644
|
||||
+find_package(PEGTL CONFIG REQUIRED)
|
||||
+if(TARGET taocpp::pegtl)
|
||||
+ message(STATUS "Searching for PEGTL - found target taocpp::pegtl")
|
||||
+ set_target_properties(taocpp::pegtl PROPERTIES IMPORTED_GLOBAL TRUE)
|
||||
+ get_target_property(TARGET_IMPORTED_GLOBAL taocpp::pegtl IMPORTED_GLOBAL)
|
||||
+ if(NOT TARGET_IMPORTED_GLOBAL)
|
||||
+ set_target_properties(taocpp::pegtl PROPERTIES IMPORTED_GLOBAL TRUE)
|
||||
+ endif()
|
||||
+ if(NOT TARGET PEGTL::PEGTL)
|
||||
+ add_library(PEGTL::PEGTL IMPORTED INTERFACE)
|
||||
+ target_link_libraries(PEGTL::PEGTL INTERFACE taocpp::pegtl)
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "vtk",
|
||||
"version-semver": "9.2.0-pv5.11.0",
|
||||
"port-version": 10,
|
||||
"port-version": 11,
|
||||
"description": "Software system for 3D computer graphics, image processing, and visualization",
|
||||
"homepage": "https://github.com/Kitware/VTK",
|
||||
"license": "BSD-3-Clause",
|
||||
|
@ -9134,7 +9134,7 @@
|
||||
},
|
||||
"vtk": {
|
||||
"baseline": "9.2.0-pv5.11.0",
|
||||
"port-version": 10
|
||||
"port-version": 11
|
||||
},
|
||||
"vtk-dicom": {
|
||||
"baseline": "0.8.14",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "e887b758153039453976be1e5d0bc54d537b0417",
|
||||
"version-semver": "9.2.0-pv5.11.0",
|
||||
"port-version": 11
|
||||
},
|
||||
{
|
||||
"git-tree": "6365f197946995803914141a82c1830d165427b3",
|
||||
"version-semver": "9.2.0-pv5.11.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user