Skip to content

Commit

Permalink
ENH: Use build tree working directories
Browse files Browse the repository at this point in the history
Change the previous WORKING_DIRECTORY from '/' to
a temp directory inside the build tree.
  • Loading branch information
hjmjohnson committed Dec 9, 2021
1 parent 758ad33 commit 9e41a45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Wrapping/Generators/SwigInterface/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ macro(itk_end_wrap_module_swig_interface)
--submodule-order "${WRAPPER_SUBMODULE_ORDER}"
--pyi_dir "${ITK_STUB_DIR}"
DEPENDS ${ITK_WRAP_DOC_DOCSTRING_FILES} ${xml_files} ${IGENERATOR} ${typedef_in_files}
WORKING_DIRECTORY / # Arguments to WORKING_DIRECTORY may use generator expressions
WORKING_DIRECTORY "${ITK_DIR}/Wrapping/$<CONFIG>" # Arguments to WORKING_DIRECTORY may use generator expressions
VERBATIM
)
else()
Expand All @@ -408,7 +408,7 @@ macro(itk_end_wrap_module_swig_interface)
--library-output-dir "${WRAPPER_LIBRARY_OUTPUT_DIR}"
--submodule-order "${WRAPPER_SUBMODULE_ORDER}"
DEPENDS ${ITK_WRAP_DOC_DOCSTRING_FILES} ${xml_files} ${IGENERATOR} ${typedef_in_files}
WORKING_DIRECTORY / # Arguments to WORKING_DIRECTORY may use generator expressions
WORKING_DIRECTORY "${ITK_DIR}/Wrapping/$<CONFIG>" # Arguments to WORKING_DIRECTORY may use generator expressions
VERBATIM
)
endif()
Expand Down

0 comments on commit 9e41a45

Please sign in to comment.