Skip to content

Commit

Permalink
Require Python Development.Module instead of Development since the li…
Browse files Browse the repository at this point in the history
…bpython is not required to build the extension
  • Loading branch information
JeanChristopheMorinPerso committed Jul 31, 2022
1 parent 9f30c14 commit fed4ee9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ if (NOT EMBEDPLUGINS AND NOT BUILD_OIIOUTIL_ONLY)
endforeach ()
endif ()

if (USE_PYTHON AND Python_Development_FOUND AND NOT BUILD_OIIOUTIL_ONLY)
if (USE_PYTHON AND Python_FOUND AND NOT BUILD_OIIOUTIL_ONLY)
add_subdirectory (src/python)
endif ()

Expand Down
2 changes: 1 addition & 1 deletion src/cmake/pythonutils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ macro (find_python)
endif ()
checked_find_package (Python ${PYTHON_VERSION}
${_req}
COMPONENTS Interpreter Development
COMPONENTS Interpreter Development.Module
PRINT Python_VERSION Python_EXECUTABLE
Python_LIBRARIES
Python_Development_FOUND
Expand Down

0 comments on commit fed4ee9

Please sign in to comment.