Skip to content

Commit

Permalink
BUG: ITKModuleExternal CMAKE_LIBRARY_OUTPUT_DIRECTORY when wrapping
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
thewtex committed Jun 28, 2020
1 parent aedde4a commit eb97b5a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMake/ITKModuleExternal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ if(NOT CMAKE_RUNTIME_OUTPUT_DIRECTORY)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${ITK_DIR}/bin)
endif()
if(NOT CMAKE_LIBRARY_OUTPUT_DIRECTORY)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${ITK_DIR}/lib)
if(ITK_WRAP_PYTHON)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${ITK_DIR}/Wrapping/Generators/Python/itk)
else()
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${ITK_DIR}/lib)
endif()
endif()
if(NOT CMAKE_ARCHIVE_OUTPUT_DIRECTORY)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${ITK_DIR}/lib)
Expand Down

0 comments on commit eb97b5a

Please sign in to comment.