Skip to content

Commit

Permalink
BUG: Generate itk-stubs file before running igenerator.py.
Browse files Browse the repository at this point in the history
An error occurred with make when running igenerator.py before the itk-stubs directory.
This fix ensureas that the directory is created before the program is ran.
  • Loading branch information
kian-weimer authored and hjmjohnson committed Dec 8, 2021
1 parent c4960ee commit 8bfd35b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMake/ITKModuleExternal.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ if(ITK_WRAPPING)
# create the directory to avoid loosing case on windows
file(MAKE_DIRECTORY ${ITK_WRAP_PYTHON_ROOT_BINARY_DIR})

set(ITK_STUB_DIR "${ITK_WRAP_PYTHON_ROOT_BINARY_DIR}/itk-stubs")
file(MAKE_DIRECTORY ${ITK_STUB_DIR})

set(ITK_PYTHON_PACKAGE_DIR "${ITK_WRAP_PYTHON_ROOT_BINARY_DIR}/itk")
# create the directory to avoid loosing case on windows
file(MAKE_DIRECTORY ${ITK_PYTHON_PACKAGE_DIR})
Expand Down
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,9 @@ if(ITK_WRAPPING)
# create the directory to avoid loosing case on windows
file(MAKE_DIRECTORY ${ITK_WRAP_PYTHON_ROOT_BINARY_DIR})

set(ITK_STUB_DIR "${ITK_WRAP_PYTHON_ROOT_BINARY_DIR}/itk-stubs")
file(MAKE_DIRECTORY ${ITK_STUB_DIR})

set(ITK_PYTHON_PACKAGE_DIR "${ITK_WRAP_PYTHON_ROOT_BINARY_DIR}/itk")
# create the directory to avoid loosing case on windows
file(MAKE_DIRECTORY ${ITK_PYTHON_PACKAGE_DIR})
Expand Down

0 comments on commit 8bfd35b

Please sign in to comment.