From 8eece1f81256629bca23b2d6d91011bc97d79d4d Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Sat, 9 May 2026 08:00:12 +0100 Subject: [PATCH] COMP: Move CMake's include(ITKWindowsUtf8) for external modules The inclusion in the root CMakeLists.txt was causing the following configure error when compiling a module externally: ``` CMake Error at C:/src/itk/ITK-main/CMake/ITKModuleTest.cmake:93 (itk_target_attach_windows_utf8_manifest): Unknown CMake command "itk_target_attach_windows_utf8_manifest". Call Stack (most recent call first): test/CMakeLists.txt:22 (createtestdriver) ``` --- CMake/ITKModuleTest.cmake | 2 ++ CMakeLists.txt | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CMake/ITKModuleTest.cmake b/CMake/ITKModuleTest.cmake index 627eb451daa..178c49a1515 100644 --- a/CMake/ITKModuleTest.cmake +++ b/CMake/ITKModuleTest.cmake @@ -11,6 +11,8 @@ # KitTests - a list of tests to be included in the test driver # ADDITIONAL_SRC (optional) - additional source files, which don't contain tests +include(ITKWindowsUtf8) + function(CreateTestDriver KIT KIT_LIBS KitTests) set(ADDITIONAL_SRC ${ARGN}) if(EMSCRIPTEN) diff --git a/CMakeLists.txt b/CMakeLists.txt index afdf85d71b8..4696e1ea036 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -180,7 +180,6 @@ include(PreventInSourceBuilds) include(PreventInBuildInstalls) include(ITKModuleMacros) include(ITKExternalData) -include(ITKWindowsUtf8) include(ITKModuleTest) include(itkCheckSourceTree)