Skip to content

Commit

Permalink
ENH: Set ITK_TEST_OUTPUT_DIR with module path
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
blowekamp authored and dzenanz committed May 3, 2023
1 parent 2c06e8c commit 7d50786
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMake/ITKModuleMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,8 @@ macro(itk_module_test)
foreach(dep IN LISTS ITK_MODULE_${itk-module-test}_DEPENDS)
list(APPEND ${itk-module-test}_LIBRARIES "${${dep}_LIBRARIES}")
endforeach()
set(ITK_TEST_OUTPUT_DIR "${ITK_TEST_OUTPUT_DIR}/${itk-module}")
file(MAKE_DIRECTORY "${ITK_TEST_OUTPUT_DIR}")
endmacro()

macro(itk_module_examples)
Expand Down

0 comments on commit 7d50786

Please sign in to comment.