Skip to content

Commit eb97b5a

Browse files
committed
BUG: ITKModuleExternal CMAKE_LIBRARY_OUTPUT_DIRECTORY when wrapping
When building a module externally, deposit its wrapping artifacts with the rest of the ITK wrapping artifacts and other external module wrapping artifacts so they can be found during test runtime.
1 parent aedde4a commit eb97b5a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

CMake/ITKModuleExternal.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ if(NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
4040
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${ITK_DIR}/bin)
4141
endif()
4242
if(NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY)
43-
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${ITK_DIR}/lib)
43+
if(ITK_WRAP_PYTHON)
44+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${ITK_DIR}/Wrapping/Generators/Python/itk)
45+
else()
46+
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${ITK_DIR}/lib)
47+
endif()
4448
endif()
4549
if(NOT CMAKE_ARCHIVE_OUTPUT_DIRECTORY)
4650
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${ITK_DIR}/lib)

0 commit comments

Comments
 (0)