Skip to content

Commit

Permalink
python dev not always required
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed May 14, 2021
1 parent 2c75fd0 commit d5c9efc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,12 @@ set(QGIS_INSTALL_SYS_LIBS TRUE CACHE BOOL "If set to TRUE install all required s
set(MIN_PYTHON_VERSION "3.7")
set(Python_FIND_FRAMEWORK "LAST")

find_package(Python ${MIN_PYTHON_VERSION} REQUIRED COMPONENTS Interpreter Development)
set(QGIS_PYTHON_COMPONENTS "Interpreter")
if (WITH_DESKTOP OR WITH_BINDINGS)
set(QGIS_PYTHON_COMPONENTS "${QGIS_PYTHON_COMPONENTS} Development")
endif()
find_package(Python ${MIN_PYTHON_VERSION} REQUIRED COMPONENTS ${QGIS_PYTHON_COMPONENTS})

message("-- Found Python executable: ${Python_EXECUTABLE} (version ${Python_VERSION})")
message("-- Python library: ${Python_LIBRARIES}")
message("-- Python site-packages: ${Python_SITEARCH}")
Expand Down

0 comments on commit d5c9efc

Please sign in to comment.