Skip to content

Commit 7d50786

Browse files
blowekampdzenanz
authored andcommitted
ENH: Set ITK_TEST_OUTPUT_DIR with module path
Change the default output path for modules testing data to include the module name as a directory. This prevents the same file name in different modules clobbering one another causing intermediate testing failures.
1 parent 2c06e8c commit 7d50786

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMake/ITKModuleMacros.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,8 @@ macro(itk_module_test)
325325
foreach(dep IN LISTS ITK_MODULE_${itk-module-test}_DEPENDS)
326326
list(APPEND ${itk-module-test}_LIBRARIES "${${dep}_LIBRARIES}")
327327
endforeach()
328+
set(ITK_TEST_OUTPUT_DIR "${ITK_TEST_OUTPUT_DIR}/${itk-module}")
329+
file(MAKE_DIRECTORY "${ITK_TEST_OUTPUT_DIR}")
328330
endmacro()
329331

330332
macro(itk_module_examples)

0 commit comments

Comments
 (0)