Skip to content

Commit a6e29c3

Browse files
committed
COMP: Add target_link_directories Python3_LIBRARY_DIRS
On Windows, we need to specify the link directory for python311.lib. This is for building the ITKPythonPackage after recent target-based build system and CMake find python changes.
1 parent 622cf57 commit a6e29c3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Wrapping/macro_files/itk_end_wrap_module.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,7 @@ ${DO_NOT_WAIT_FOR_THREADS_CALLS}
547547
"/wd4244"
548548
)
549549
endif()
550+
target_link_directories(${lib} PUBLIC ${Python3_LIBRARY_DIRS})
550551
endif()
551552

552553
# Link the modules together

0 commit comments

Comments
 (0)