[ITK] Fix ITK linker error on usage (#27187)

* Don't build gtest

* Update versions
This commit is contained in:
Akash 2022-10-14 16:28:29 -07:00 committed by GitHub
parent aed63d2200
commit a1109c9e55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 3 deletions

View File

@ -0,0 +1,12 @@
diff --git a/Modules/ThirdParty/GoogleTest/itk-module.cmake b/Modules/ThirdParty/GoogleTest/itk-module.cmake
index 5571748129..19ebb60885 100644
--- a/Modules/ThirdParty/GoogleTest/itk-module.cmake
+++ b/Modules/ThirdParty/GoogleTest/itk-module.cmake
@@ -3,6 +3,7 @@ Google's C++ test framework.")
itk_module(ITKGoogleTest
DEPENDS
+ EXCLUDE_FROM_DEFAULT
DESCRIPTION
"${DOCUMENTATION}"
)

View File

@ -14,6 +14,7 @@ vcpkg_from_github(
wrapping.patch
opencl.patch
use-the-lrintf-intrinsic.patch
dont-build-gtest.patch
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS

View File

@ -1,7 +1,7 @@
{
"name": "itk",
"version": "5.2.1",
"port-version": 1,
"port-version": 2,
"description": "Insight Segmentation and Registration Toolkit (ITK) is used for image processing and analysis.",
"homepage": "https://github.com/InsightSoftwareConsortium/ITK",
"license": "Apache-2.0",
@ -14,7 +14,6 @@
"default-features": false
},
"gdcm",
"gtest",
{
"name": "hdf5",
"default-features": false,

View File

@ -3142,7 +3142,7 @@
},
"itk": {
"baseline": "5.2.1",
"port-version": 1
"port-version": 2
},
"itpp": {
"baseline": "4.3.1",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e22b353e8f00bcdc12b78d414a712a3498a2d0d6",
"version": "5.2.1",
"port-version": 2
},
{
"git-tree": "21beac1c375ce633f869566345d7418849633c3e",
"version": "5.2.1",