From 795c9ef709152304f3044a05f15bd69bd7d566dd Mon Sep 17 00:00:00 2001 From: "Hans J. Johnson" Date: Wed, 7 Oct 2026 12:53:01 -0500 Subject: [PATCH] COMP: Do not include UseITK when building as an external module UseITK registers every IO factory of the ITK build as a directory-wide compile definition, so each test object references the *ImageIOFactoryRegister__Private symbols of modules this module never links, and the test driver fails to link against an ITK that has ITKIOGE or ITKIOFDF enabled. ITKModuleExternal already applies ITK's flags, and the module template does not include the use file. --- CMakeLists.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ef2ae9ae..a27deba3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,6 @@ project(LesionSizingToolkit) if(NOT ITK_SOURCE_DIR) find_package(ITK REQUIRED) - include(${ITK_USE_FILE}) list(APPEND CMAKE_MODULE_PATH ${ITK_CMAKE_DIR}) include(ITKModuleExternal) else()