Skip to content

Commit cba38d9

Browse files
committed
BUG: Do not use REQUIRED with FindPython3
FindPython3 will throw a false-positive error if Python3_LIBRARY is not found even though this is not required for development on Unix.
1 parent 2912234 commit cba38d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ if(ITKPythonPackage_SUPERBUILD)
145145
OR NOT DEFINED Python3_LIBRARY
146146
OR NOT DEFINED Python3_EXECUTABLE)
147147

148-
find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
148+
find_package(Python3 COMPONENTS Interpreter Development)
149149
if(NOT Python3_EXECUTABLE AND _Python3_EXECUTABLE)
150150
set(Python3_EXECUTABLE ${_Python3_EXECUTABLE} CACHE INTERNAL
151151
"Path to the Python interpreter" FORCE)

0 commit comments

Comments
 (0)