Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CMake/vtkWrapPython.cmake
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
#-----------------------------------------------------------------------------
cmake_minimum_required(VERSION 3.12)
#-----------------------------------------------------------------------------

#
# CMake implementation of the Wrap Python command.
#
Expand Down Expand Up @@ -189,7 +193,7 @@ if(VTK_WRAP_PYTHON_FIND_LIBS)
else()
set(_QUIET_LIBRARY "REQUIRED")
endif()
find_package(PythonLibs ${_QUIET_LIBRARY})
find_package(Python3 COMPONENTS Development ${_QUIET_LIBRARY})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A heads up that the same type of change was proposed in the main Slicer project, but resulted in issues of it picking up the System python instead of Slicer's python. See Slicer/Slicer#8578 (comment)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but resulted in issues

Ok, this cannot be a generalised solution then - it stems from an attempt to build VMTK. I'll use it in my local branch.

Thank you for the information.


# Use separate debug/optimized libraries if they are different.
if(PYTHON_DEBUG_LIBRARY)
Expand Down